On Jun 20, 12:23 am, Coolguyfru <[email protected]> wrote:
> Here is my code. Can u plz tell me what to be done to calculate the
> distance between two UK postcodes....

Please don't post code. Do read the posting guidelines for some
reasons why not (although seeing it via the Group may give some idea
why). Please post a link to a page we can run in our browsers.

http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

Have you read the pages I linked to at
http://groups.google.com/group/Google-Maps-API/msg/756058a8a5b93bc7
together with Mike's reply in this thread?

Code like document.forms[0].address1.value is IE-specific and should
be document.getElementById("address1").value to be browser-
independent.

Have you read the Terms of Service? Your page appears to contain no
map, and as it uses the geocoder it's not currently compliant.
http://code.google.com/apis/maps/terms.html

You can use GDirections without a map, so it would be possible to use
  gdir.load("from:CM7 0BB,UK to:CA7 0BB,UK"); or
  gdir.load("from:"+document.getElementById("address1").value+
  " to: "+document.getElementById("address2").value);
and then get the distance in the load handler function. But that is
subject to the postcode inaccuracy I mentioned.

Andrew
--~--~---------~--~----~------------~-------~--~----~
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