I need to calculate distances between UK postcodes. I don’t want to use a web api. Does a python module/ library exist for this? Or do I have to put together something of my own using data from the OrdnanceSurvey?
Thanks,
Advertisement
Answer
1/You can use any rest geolocation api eg google maps, that would provide you accurate distance based on the pincodes.
2/ You can use any updated database which has post codes and latitude/longitude information, and use that information to calculate distance between the two points.
Helpful links:
i) http://blog.acmultimedia.co.uk/2008/03/uk-post-code-distance-calculator-using-phpmysql/
ii) Django – how can I find the distance between two locations?