Distances between UK postcodes
Posted: Sat May 22, 2004 4:43 am
I've seen a lot of website that have a feature to work out the distance between two UK postcodes. (For example on an estate agency website, you can search for houses within 50 miles of a certain postcode).
I imagine this works by having every UK postcode is stored in a database with a grid reference, and working out the distance 'as the crow flies' between the two grid reference points.
Does anyone know of anywhere that I could get hold of such a database? Also, can anyone advise on a function for working out the distance between two grid reference points?
I imagine this works by having every UK postcode is stored in a database with a grid reference, and working out the distance 'as the crow flies' between the two grid reference points.
Does anyone know of anywhere that I could get hold of such a database? Also, can anyone advise on a function for working out the distance between two grid reference points?