GDownloadUrl can also send POST requests. http://code.google.com/intl/en/apis/maps/documentation/reference.html#GDownloadUrl
If you want a more precise answer than that, please follow the posting guidelines and post a link to your page. -- Marcelo - http://maps.forum.nu -- On Sep 17, 1:34 am, Julien MARY <[EMAIL PROTECTED]> wrote: > After some research in the group geocoding+javascript+variables+php > and especially the > topichttp://groups.google.com/group/Google-Maps-API/browse_thread/thread/c... > > 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 -~----------~----~----~----~------~----~------~--~---
