google maps - Getting the nearest street/road coordinates in android -
in javascript, using google maps apis specify options such google.maps.travelmode.driving. have equivalent travelmode in android? couldn't see in android.location.locationmanager or android.location.criteria i've thought of following options:
using
travelmodealternative, coordinates approximated nearest street/road.alternatively, (not preferred slow) coordinates , send google api(this pretty slow there many points) , coordinates corrected nearest street coordinates. or in case if there exists (google-maps) javascript framework, may used corresponding street coordinates.
edit1:
i've looked this. , hence android.location.geocoder. getfromlocation in class seems of work. however, i'm afraid, of additional delay while acquiring nearest address.
if referring directions service, uses google directions api internally stated in overview:
this object communicates google maps api directions service receives direction requests , returns computed results.
as there no native api android yet, suggest using directions api directly.
see answer here.
Comments
Post a Comment