Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the road name in google maps?

i want to get ONLY the road name in google maps not exact address, using either the geocoder or the directions service.i tried this results[0].address_components[1].long_name but it returns several different names (not necesserily wrong) on the same road.

like image 398
drou Avatar asked Oct 10 '22 04:10

drou


1 Answers

You need to do a reverse geocode lookup on the location. Google provide this: http://code.google.com/apis/maps/documentation/geocoding/

Read more here: http://en.wikipedia.org/wiki/Reverse_geocoding

like image 88
ingh.am Avatar answered Oct 12 '22 18:10

ingh.am