Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get formatted address from latitude and longitude using google places textsearch api?

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?

like image 371
Milan Rathod Avatar asked Jan 26 '26 00:01

Milan Rathod


1 Answers

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.

like image 125
jatinderjit Avatar answered Jan 28 '26 12:01

jatinderjit