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

Aceconhielo
  • 3,316
  • 4
  • 19
  • 26

1 Answers1

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

Amir H
  • 115
  • 12