I have an issue with android Google Maps. I want find route between two locations but avoid specific points which given in input.
Can you help me with this ?
I have an issue with android Google Maps. I want find route between two locations but avoid specific points which given in input.
Can you help me with this ?
There is no specific feature of this kind yet. According to this SO thread, this is a feature request for the Maps API.
However,I can suggest possible alternatives like Using Waypoints in Routes.
Note: sample was done in Javascript
In this fiddle demo, you have 3 markers A, B & C. A = origin, B = route, C = destination.
var directionsService = new google.maps.DirectionsService;
Let's say the initial point of B is blocked, drag it to other streets/points in the map (zoom-in to see other routes) and you have your alternative route. You can read more of waypoints in the DirectionService guide.