views:

86

answers:

0

Hello,

I have put together some code to calculate distances between two zip codes. When I enter the zip codes through the api I get a different distance than I do with the actual google maps site.

Anyone have an idea on why this is occurring?

A few ideas I have are: I am not centering to the zip code -> I was looking around to see how I could do this but no luck.

The Google maps site is including additional options that I am missing

Issue with United Kingdom zipcodes -> read an old article stating that the UK has a strict requirement, not sure about this one.

The values I am testing are: Origin: le17 6qt United Kingdom Destination: Le16 9ul United Kingdom

Here is my code: http://www.pastie.org/883475

Here is an example page: djintelligence.com/quote/distance.asp