How to grab the Longitude and Latitude from googlemaps?

77 views
Skip to first unread message

expat101

unread,
May 28, 2009, 10:30:15 PM5/28/09
to Google Maps EZ
how can i grab the Longitude and latitutde from clicking on a
googlemap?

i would like to offer a general home map on my site and allow the user
to to click on it to place a marker on the map.

i am using php plus mysql

rob1951

unread,
Jun 7, 2009, 9:49:55 AM6/7/09
to Google Maps EZ
Not sure if this helps but I do have a page that DISPLAYS the lat/long

http://www.yorkshire-cadets.co.uk/Latitude-Longitude.php

Not (yet) gone further and got the lat/long stored to a database but
this incomplete variant http://www.yorkshire-cadets.co.uk/Latitude-Longitude1.php
copies the lat/lon to form fields - you just need a php script to do
write to the database when the button is clicked.

So far gmapez is not involved, however as a precursor to a page that
reads a list of lat/long and uses gmapez to display them it's
relevant.

I'd be wary of making it a public facility as people may "spam" it
with garbage locations - or "real" users may need a couple of attempts
before they get it right...
Reply all
Reply to author
Forward
0 new messages