Using Google Maps to pinpoint an exact location
Posted on 2008-11-17
Objective: I want to let my clients refine my geolocation data.
Here's what I have working so far...
Given a ZIP code and street address, I call a geocoder service and get back a latitude/longitude pair (geolocation). I can open a new web page with a Google Map showing this geolocation with a pushpin.
I want to enable the client to see and approve that Google Map. If the client wants to change the location, I want him to be able to reposition the pushpin to the correct location. When he is satisfied with the final location of the pushpin, I want the client to "click OK" and I want to be able to get the new latitude/longitude pair back into my PHP script. In a perfect world, the return data would arrive synchronously, as if it were presented in a form via $_POST.
I want the Google Map embedded in my site for consistent look and feel.
Thanks and regards to all,