Hi Mike-

Okay, if you're going to be storing these addresses, then you may as
well just use a tool that's already designed to make it easy to input
multiple addresses and get back the coordinates:
http://www.wotton.org/map/batchgeo.html

If you still really want to code this in Flash, you can port this
example from JS for geocoding multiple addresses:
http://gmaps-samples.googlecode.com/svn/trunk/geocoder/delayed.html

- pamela


On Mon, Oct 6, 2008 at 4:50 PM, mike <[EMAIL PROTECTED]> wrote:
>
> Hi Pamela,
>
> yes, once I geocode all addresses, they will be stored. So this
> operation will be done once.
>
> By function closure you basically mean to have a function containing
> the ClientGeocoder
> and all callbacks and which returns the long-lat? So the for-loop will
> call this function
> instead of geocode directly?
>
> thanks for the reply.
> mike
>
> On Oct 5, 3:01 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>> Hey Mike-
>>
>> The basic answer is function closure, and using different
>> ClientGeocoder objects for each geocode.
>>
>> But my question is, why do you want to geocode in a loop? We highly
>> discourage using client-side geocoding for that. If you know addresses
>> ahead of time, you should geocode them once and store the lat/lngs in
>> your DB/text files/etc. Then it's a much better experience for the
>> user, as they don't have to wait for the geocoding to complete.
>>
>> - pamela
>>
>>
>>
>> On Wed, Oct 1, 2008 at 5:43 AM, mike <[EMAIL PROTECTED]> wrote:
>>
>> > Hi,
>>
>> > i want to convert a set of addresses stored in an array.
>> > How could I pass the index of the currently used index in the array
>> > to the geocode function? (and as a consequence on the "success"
>> > callback)
>>
>> > for i...
>> > {
>> >   geocode(string) //<- how do I pass the "i" here and on the
>> > callback?
>> > }
>>
>> > thanks- Hide quoted text -
>>
>> - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to