Reputation: 336
I want to display a formatted address on click of map pin.
Google's textseach api giving key formatted_address. How can I use to get formatted_address for particular latitude-longitude for that particular place?
Is it possible to get formatted address from latitude and longitude using google places textsearch api?
Upvotes: 3
Views: 1247
Reputation: 1399
You'll need the Google Maps Geocoding API to get the address.
Example: https:// maps.googleapis.com/maps/api/geocode/json?latlng=19.1309601,72.9068758&key=your-key
PS: Multiple results will be returned most of the time.
Upvotes: 1