On Jan 27, 12:04 pm, "liz.rickaby" <[email protected]> wrote: > I have a website that I'm taking over from another designer, so I have > to try to dissect the code he used. He used Google Maps to calculate > the distance between two addresses, display a map of the rout and > display a rate based on the distance (it's sort a taxi service). The > client wants me to change the calculation so that if the addresses are > within certain zip codes it calculates the rate differently. Is there > a way to get the zip codes into a variable so I can add an if > statement?
What country? I would suggest using the geocoder, I know for the US, it usually gives you the zip code if the address information is good enough. There ia also a geocoder web service that might work for you. See the documentation. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
