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

Move away from Google Maps for directions service #111

Open
pezholio opened this issue Nov 27, 2017 · 0 comments
Open

Move away from Google Maps for directions service #111

pezholio opened this issue Nov 27, 2017 · 0 comments

Comments

@pezholio
Copy link
Contributor

If there's a lot of routes on a page, we get this error:

screenshot 2017-11-27 14 49 05

This is because we calculate the routes via the Google Maps API every time we display a route on the frontend, and we're hitting the rate limit. I've done a temporary fix by logging the error to the console, rather than alerting, but we need to do two things here:

  1. Move away from the Google Maps Directions API, and use Mapbox, which we use elsewhere anyway
  2. Cache the route so we're not hitting the API every time.
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

1 participant