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:

  1. using travelmode alternative, coordinates approximated nearest street/road.

  2. 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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -