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)
marker.city = location.city;
The problem is that marker.city is always null, even though it's
extracting the city properly in reverseGeocode(latLng). Any
suggestions on how to fix this?
On Nov 4, 6:46 pm, Rossko <[email protected]> wrote:
> > 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 this synchronously?
>
> No, but you can write code that simulates it e.g. execute one request,
> when response comes execute the next, when all complete do whatever
> else. The next pitfall will be the limited rate of request allowed,
> to prevent abuse.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.