1

I want to get the route between 2 points using google maps api but I want also avoid some coordinates between them.

I have been investigating this feature but I do not know if it is possible to get this done. See these threads:

Is there a way to avoid a specific road or coordinate in Google Directions?

Avoid some coordinates in routes using Google Directions API Android

Anyone know if it is possible?

Thanks

1 Answer 1

1

Avoid feature has been introduced in Google Maps Distance Matrix API, however it can only be used to avoid Tolls, Highways, Ferries, and Indoor.

you can check this on its documentation page.

https://developers.google.com/maps/documentation/distance-matrix/intro

This feature is pretty popular and has been formerly requested in Google Issue Tracker. If you really need it you can go ahead and support it by starring it.

https://issuetracker.google.com/issues/35816642

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.