On Nov 19, 10:50 am, Humberto Ferreira <[email protected]> wrote: > Hello Larry, > > thanks for all your help. > I've managed to geocode the city, country with the script bellow. The point > variable gives me the latitude and longitude value, but I can´t find a way > to send that value into my database. > How can I pass that point variable value to ASP so I can insert it in my > database.
You could use the HTTP Geocoder from the server (if you are already passing the address back to the server). You could use GDownloadUrl or GXmlHttp to send the coordinates back to the server. This really is a general server/client question and nothing to do with google maps (other than the fact that the data you are sending back is geographic coordinates for use on a Google Map API based map...) -- Larry > Once again, if you could help me out I would apreciate. > > *<script > src="http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAUP45hV..." > type="text/javascript"></script> > > <script type="text/javascript"> > > var map = null; > var geocoder = null; > > function initialize(address) { > if (GBrowserIsCompatible()) { > map = new GMap2(document.getElementById("map_canvas")); > geocoder = new GClientGeocoder(); > > if (geocoder) { > geocoder.getLatLng( > address, > function(point) { > if (!point) { > alert(address + " not found"); > } else { > map.setCenter(point, 10); > var marker = new GMarker(point); > map.addOverlay(marker); > alert(point); > } > } > ); > } > } > } > > initialize('<%=cidade%>, <%=pais%>') > > </script>* -- 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=.
