3 ms·
For anyone in the UK is interested in this type of data: https://www.ordnancesurvey.co.uk/business-and-government/products/code-point-open.html https://www.ord
by ZenoArrow 11y ago
For anyone in the UK is interested in this type of data:
https://www.ordnancesurvey.co.uk/business-and-government/products/code-point-open.html https://www.ordnancesurvey.co.uk/business-and-government/pro...
The data is free, but it's in Easting/Northing format rather than Latitude/Longitude. I would recommend converting it to Latitude/Longitude using the WGS84 projection (if that means nothing to you, basically it means you're using the standard format for coordinate data used in websites, can use the data with Google Maps, OSM, etc...).
- petepete 11y agoBreasal is a handy tool for doing the conversion. https://github.com/theodi/breasal https://github.com/theodi/breasal
- ZenoArrow 11y agoThanks for the tip. I'm planning on doing this conversion soon, I intended to use the following C# library as a SQL Server CLR function, but I probably would've used breasal (or something similar) if I was using Linux: https://code.google.com/p/geocoordconversion/ https://code.google.com/p/geocoordconversion/ For anyone who wants to use this C# library, worth reading this: http://webcache.googleusercontent.com/search?q=cache:er_vqaKhr3YJ:www.adathedev.co.uk/2013/03/gb-post-code-importer-conversion.html+&cd=2&hl=en&ct=clnk&gl=uk&client=opera http://webcache.googleusercontent.com/search?q=cache:er_vqaK...
- petepete 11y agoAnother good source of UK Postcode data is doogal.co.uk. The author (Chris Bell) combines the Codepoint Open dataset with other ones from the ONS; that gives a more comprehensive list of postcodes (including ones that are no-longer in use and codes in Northern Ireland and the Isle of Man). In his datasets he's already done the conversion to regular lat/lon. http://www.doogal.co.uk/UKPostcodes.php http://www.doogal.co.uk/UKPostcodes.php
- rmc 11y agoConversion between any 2 arbitary spatial reference systems (e.g. to/from lat/long) is quite easy and trivial with any GIS library. PostGIS can do it with "ST_Transform(ST_SetSRID(ST_Point(X, Y), ORIGINAL_SRS), 4326)"
- timthorn 11y agoOn the other hand, grid refs are a bit more human friendly, and can be used much more easily on OS maps than lat/long. They clearly wouldn't work on a global scale, but generations of Scouts would be lost without them!
- pjc50 11y agoFor a neat visualisation: http://www.npemap.org.uk/postcodeine/ http://www.npemap.org.uk/postcodeine/