android - Redraw route on map when user changes driving route -


i'm working on android app draws path on map using polyline options, between source destination.

this works fine.

what need is, if user starts source, , instead of taking drawn route towards destination, user takes route, path on map should redrawn user's current path.

i'm using directions api drawing path.

i think, i'm required use google navigation api. how can use within app, without having navigate google maps app?

first: check if current/last known location near or falls on path/route created.

direction api: check if place falls in route path between 2 places

second: if current/ last known location if outside or off path/route created, send request direction current location same destination.

or

try this

turn turn navigation


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -