Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API research. #6

Closed
emswann opened this issue Jan 12, 2018 · 2 comments
Closed

API research. #6

emswann opened this issue Jan 12, 2018 · 2 comments
Milestone

Comments

@emswann
Copy link
Owner

emswann commented Jan 12, 2018

Research Yelp and Leaflet APIs to prepare for coding.

@emswann emswann added this to the Sprint 1 milestone Jan 12, 2018
@emswann emswann changed the title Perform API research. Perform API research - Bob Jan 12, 2018
@emswann emswann changed the title Perform API research - Bob Perform API research - Bob. Jan 12, 2018
@emswann emswann changed the title Perform API research - Bob. API research - Bob. Jan 12, 2018
@emswann emswann changed the title API research - Bob. API research. Jan 12, 2018
This was referenced Jan 12, 2018
@robertbernardbrown
Copy link
Collaborator

Yelp API does not support CORS (Cross-Origin Resource Sharing) so we are unable to access the API directly without using a backend technology
Yelp/yelp-fusion#64

Elaina found the Google Places API which is also unsupported for CORS but at least has a JS library we can hit
Sample code below:
https://developers.google.com/maps/documentation/javascript/examples/place-search

@emswann
Copy link
Owner Author

emswann commented Jan 13, 2018

After research we will use the following Google JavaScript libraries:

Google Places: Restaurants in the area based on user location and selected radius.
Google Geocode: To get geocodes based on user address input if geolocation cannot be determined.
Google Geolocation: Initially determines user current address.

Hannah said this can satisfy our API requirements for project. If we can add a couple of Ajax calls that would be great.

Possibility to get restaurant information:

Yelp API getting around CORS issue with cors-anywhere. Use this for restaurant modal information or at least picture of restaurant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants