Skip to content Skip to sidebar Skip to footer

Find The Type Of A Location In Android

Given that I have a set of location coordinates. How can I find the 'type' of that place. Eg. Can I say that the place is a restaurant or cafe or shopping. It would be the way Pla

Solution 1:

You should be able to do this with the places API. Get the coordinates from the device, and make a request to the Places API with the latitude/longitude, and a very small distance (say, a matter of feet). You should probably also rank by distance, as prominence is default. Then, use the first result, as it will be your closest match, and extract the type.

https://developers.google.com/places/documentation/search#PlaceSearchRequests

Post a Comment for "Find The Type Of A Location In Android"