Re: Google Maps Distance Between UK Postcodes
| From: | Richard Heyes | Date: | Mon, 01 Sep 2008 15:20:01 +0000 |
| Subject: | Re: Google Maps Distance Between UK Postcodes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279221@lists.php.net to get a copy of this message | ||
> Has anyone tried to work this out?
> All I'm trying to get is the rough distance in miles between two UK
> postcodes using Google Maps API for a basic auto quote script based on
> mileage travelled.
> I thought it would be easy but it seems that I need to convert each postcode
> to Lat/Long using Geocoding and then work it out from there.
> I can't find any examples so before I find another way of 'skinning the cat'
> has anyone had experience of this and able to point me the right way?
If it's straight line distance you might well be able to use peter
gorous on the coords. If it's distance by road, then not.
--
Richard Heyes
HTML5 Graphing for IE7, FF, Opera and Safari:
http://www.phpguru.org/RGraph