Mike,

Based on what you said, (and I understood some of it), it looks like
you would be reading the geocode on each waypoint.  I am trying to
allow four seperate input fields for the eu to put their address (like
address, city, state, and zipcode).  If I understood what you said
correctly, it appears that they would already need to have entered
their information on the site.  The main reason for this is because no
matter how many examples I give customers, they still won't put their
entire address on one line.  They just don't like to do it.

I was thinking of something along the lines of:

    function setDirections(fromAddress, toAddress, locale) {
      gdir.load("from: " + fromAddress + " " + fromCity + " "
      + fromState + " "  + fromZipcode + " to: " + toAddress,
                { "locale": locale , "getSteps":true});

... but I can't get it to work at all.  In the example above, the
fromAddress, fromCity, fromState, and fromZipcode are all text fields
(inputs) on the website.  I've been combing through google's regular
search results, but haven't found a thing yet.  Some suggested using
PHP and server-side scripting to combine all of the fields together.
While that may work, it seems a bit chaotic.  I'll try it and post
back.  If you think what you said above would help, I'll look into
it.

Thanks for the reply.
-Kyle

On Dec 16, 1:28 am, Mike Williams <[email protected]> wrote:
> You can wait for the GDirections to complete (by listening for the
> "load" event) then use
>   var gcode = dirn.getGeocode(i);
> to read the geocode details of each way point
>
> The information is in the AddressDetails, e.g.
>   gcode.AddressDetails.Country.CountryNameCode
>
> Doing it that way doesn't count any extra geocode calls to your quota,
> since the information is already in the GDirections reply.
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to