-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Switch Geocoding API from Google to Mapbox #136
Comments
do you have your heart set on using Mapbox for geocoding? Esri's is 💯 , supports suggestions and POI search and allows up to 1 million unauthenticated requests a month. we already wrote a plugin for Leaflet, but i've been looking for an excuse to make something that has no map dependencies whatsoever too... |
Thanks for the tip, John! I‘ll have to check out Esri. It sounds awesome. : ) |
Comparing the two APIs, we currently have:
The Mapbox call would look like the following:
Thus it would appear to be a relatively straightforward substitution. |
Awesome, George! FOLA’s access token for Mapbox is available as a global variable called
After the switch, we can remove the Google Maps https://github.com/foodoasisla/site/blob/master/_layouts/location-details.html
|
While we were working on the Add a location page, @LearningNerd found a way to do geolocation using the Mapbox API, without loading any additional third-party JavaScript! You can see some example code here… It looks like this…
|
https://www.mapbox.com/help/define-geocoding/
The text was updated successfully, but these errors were encountered: