Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Map Address from latitude and longitude

I am using google map api i am fetching dynamically latitude and longitude from my database. I want to show address for each position can any one tell me how can id that.

or can any anyone tell how this site is fetching address for each every position. http://www.findlatitudeandlongitude.com/find-address-from-latitude-and-longitude.php#.UTpYG1c9nwk

like image 436
Nomi Avatar asked Jan 14 '23 00:01

Nomi


2 Answers

Fetching the associated address from a coordinates is called Reverse Geocoding

The Google Maps API provides reverse geocoding in the javascript API and as a web service.

The Google Maps service is not intended for bulk use. Your best option is to store the address in your database along with the coordinates as Reverse Geocoding is not always reliable.

like image 154
geocodezip Avatar answered Jan 22 '23 09:01

geocodezip


You can use google map api like below

http://maps.googleapis.com/maps/api/geocode/json?latlng=34.41448,-118.93753&sensor=true

Using this api,you can get address address from key

"formatted_address" : "1271 Cliff Avenue, Fillmore, CA 93015, USA"

Whole address you can get using this api.

Hope need helpful.

like image 42
Chris Alan Avatar answered Jan 22 '23 09:01

Chris Alan