Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding nearest street given a lat-long location

Is there any such API where given a location (in terms of latlong), I could find whether the given point is on road/street or not. And if possible also gives me nearest street/road to that location. I found API from [Find nearby Streets] -> http://www.geonames.org/maps/us-reverse-geocoder.html#findNearbyStreets , but it just gives solution for US. Help me if u know of any better solution/algorithm. ( I am particularly interested in India.)

like image 738
Swati Avatar asked Jul 05 '11 12:07

Swati


1 Answers

You can use the Google Maps Geocoding API which does exactly that: https://developers.google.com/maps/documentation/geocoding/intro

Take a look at the "Reverse Geocoding" section.

like image 93
Mathias Schwarz Avatar answered Sep 25 '22 18:09

Mathias Schwarz