Android - How to determine whether coordinates lie on road in Google Maps
I need to make a check in my application that determines whether the given coordinates lie on road or not in Google Maps. Is there any function in Google Maps API that can aid me with that? Thanks in advance! As far as I know this can't be done using the Google Maps API. I think your best bet is to use a crowd-sourced dataset such as OpenStreetMap (OSM) . You'd need to set up your own spatial database (e.g., PostGIS ) and import OSM data into the database. Then, you'd create a server-side API (hosted in a web server such as Tomcat or Glassfish ) to receive the mobile phone's current location,