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

Support the new Routes API #35

Open
ollietreend opened this issue Jul 17, 2024 · 0 comments
Open

Support the new Routes API #35

ollietreend opened this issue Jul 17, 2024 · 0 comments

Comments

@ollietreend
Copy link

ollietreend commented Jul 17, 2024

Google Maps has a new(ish) service called the Routes API:

Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features.

Google actively recommends that developers migrate to the new API:

Why migrate to Routes API?

The Routes API provides improved performance for calculating directions, distance, and travel time, making it worthwhile to replace apps that currently use Directions API and Distance Matrix API. Most of the functionality of Routes API is backward compatible with both Directions API and Distance Matrix API.

It would be great for this gem to add support for the new Routes API. It doesn't necessarily mean support needs to be dropped for the older APIs – as far as I can tell, Google has no plans to shut them down. But I think it would be great to have the flexibility to specify which API the gem uses. It sounds like there's good feature parity between the old and new APIs.

While the new Routes API is supposedly more performant, it's also worth bearing in mind that it's billed differently and needs to be enabled independently of the Directions and Distance Matrix APIs. So it seems reasonable for people to have a preference over which API is used.

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