Alex Rivera | Logout

Google Maps API Geocode Synchronously

Asked 2009-08-21T05:02:37.297
11

I was wondering if its possible to geocode something using googlemaps api synchronously so instead of waiting for a callback function to be called, it would wait for a value to be returned. Has anyone found a way to do something like this.

P.S.: I'm using version 3 of the api

Edit
Report

1 Answer

2

The Geocoder calls your callback function with the value. That's the only way to do it. If it were synchronous, your script would freeze while it waited for the Geocode to process. There really isn't any reason to do it like that.

What exactly are you trying to accomplish?

answered 2009-08-21T05:44:54.590

Your Answer