[Google Maps API v3] Re: Synchronous reverse geocoding

2011-11-05 Thread Rob
Thanks Larry, in case anyone gets this issue, this is what I did to fix it: //takes a google.LatLng object //returns an array with city at [0] amd country at [1] function reverseGeocode(marker) { var location = new Object(); city = ["administrat

[Google Maps API v3] Re: Synchronous reverse geocoding

2011-11-05 Thread geocode...@gmail.com
On Nov 5, 12:34 am, Rob wrote: > Thanks for helping out, so I followed your suggestion of doing a > reverse geocode when dropping the marker, such as: > >                         markerLocation = reverseGeocode(marker.getPosition()); >                         alert(markerLocation.city); > > Howeve

[Google Maps API v3] Re: Synchronous reverse geocoding

2011-11-05 Thread Rob
Thanks for helping out, so I followed your suggestion of doing a reverse geocode when dropping the marker, such as: markerLocation = reverseGeocode(marker.getPosition()); alert(markerLocation.city); However, markerLocation is always null, even thoug

[Google Maps API v3] Re: Synchronous reverse geocoding

2011-11-05 Thread Rob
Thanks for helping out, so I followed your suggestion and tried to implement it when the marker is dropped, such as: var location = null; location = reverseGeocode(marker.getPosition()); if(marker.city == null)

[Google Maps API v3] Re: Synchronous reverse geocoding

2011-11-04 Thread Rossko
> I have a map where I drop a number of markers. That would be the time to do reverse gecoding? >  I need to save the > location of the markers to a database, along with the city and country > that the marker was placed in. Beware the terms of use for storing Google's data > Any way I can do th