In the Ruby application which I’m developing, given latitude and longitude of a point, I need to find the nearest road/highway to the point.
Can someone tell me how I can go about this using Google Places API?
I have tried giving a certain radius and finding the roads using the 'types:"route"' parameter but it gives me “Zero results” as the output.
The Google Places API is not designed to return nearby geographical locations, it is designed to return a list of nearby
establishmentsand up to twolocalityorpoliticaltype results to to help identify the area you are performing a Place Search request for.The functionality you are requesting would be possible with the Google Geocoding API by passing the lat, lng to the
latlngparameter of the HTTP reverse geocoding request:http://maps.googleapis.com/maps/api/geocode/json?latlng=41.66547000000001,-87.64157&sensor=false