After some research in the group geocoding+javascript+variables+php
and especially the topic
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/ce79aa5827eb1b6c/f82831f6941bd2b6?lnk=gst&q=geocoding+javascript+variables+php#f82831f6941bd2b6

It appears that the following script (associated with the right form
in my code):
********************
function showLatLong(response) {

      if (!response || response.Status.code != 200) {
        alert("Sorry, we were unable to geocode that address");
      } else {
        place = response.Placemark[0];
        point = new GLatLng(place.Point.coordinates[1],
                            place.Point.coordinates[0]);

        //document.write(point);
        msg = "Latitude: "+point.lat()+"<br />"+"Longitude:
"+point.lng();
        lat = point.lat();
        lng = point.lng();
                  document.getElementById("mypoint").innerHTML = msg;
                  document.getElementById("my_lat").value = lat;
                  document.getElementById("my_lng").value = lng;
}}
*************
will never be able to send the latitude and longitude obtained for
<form name="gForm" action="script.php" method="POST"
onsubmit="showLocation();">

and there is no way to make it happen.
If I want to get the closest places to a given address I must follow
one of those two strategies :

1)Collect all data first, in order to proceed my calculation in my
page itself and render results in it. Even a XMLHttpRequest won't save
me to not have to do this.

or
2)Make the server proceed the geocoding request (with the inconvenient
which is mentionned in the FAQ concerning the limited rate of request
from a given IP address)

Can somebody confirm that this view is right ?



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to