GoogleDirectionLibrary
GoogleDirectionLibrary copied to clipboard
How to update polyline according to the user current location?
Call this library with the new location then redraw the polyline on the map
@akexorcist This approach will consume a lot of API requests which will cost more.
@islamarr Absolutely yes. But no way to update the new route when user is outside the route direction with only single request from Direction API
@akexorcist I think we can! by using polyline.setPoints(points);
check this
https://stackoverflow.com/a/17038499/7826372
But still I can't use it through this library.
This library is great, but can I get the polyline created, so I can update just the polyLine. So that I can avoid calling the API request again