How to get "latitude" and "longitude" for an address? Google Maps

I am using http://gmap.nurtext.de/documentation.html to display a map for my address field (mysql table)

How can I get latitudeand longitudefor each address, for example:

I have this address: 'McLester road'

example

Note:
my visitor (user) who added the address (to the Mysql table)

+3
source share
2 answers

Enter your address on Google Maps.

Now enter this in the address bar:

javascript:void(prompt('',gApplication.getMap().getCenter()))

This will return you longitude and latitude. Just copy and paste these numbers into your code.

EDIT

, , , , :

prompt('',gApplication.getMap().getCenter())

, javascript, : gApplication.getMap().getCenter()

, .

+6

Google geocoding sevice .

javascript api, webservice.

+1

Source: https://habr.com/ru/post/1791645/


All Articles