A dump of the UK postcode district and area polygons from Wikipedia in KML and GeoJSON format
See this helpful guide from Ideal Postcodes.
An export of the KML files linked from the List of postcode districts in the United Kingdom page, also converted to GeoJSON.
Note: Each GeoJSON file represents a postcode area and contains a FeatureCollection
, with one Feature
per constituent postcode district.
eg: https://github.com/missinglink/uk-postcode-polygons/blob/master/geojson/E.geojson
Updating the GeoJSON and KML files from Wikipedia requires togeojson
and geojson-rewind
...
sudo npm install -g @mapbox/togeojson
sudo npm install -g @mapbox/geojson-rewind
or ...
sudo yarn global add @mapbox/togeojson
sudo yarn global add @mapbox/geojson-rewind
see update.sh
.
For the data? no. this repo should be considered read-only, all edits must be made to Wikipedia directly.
The index is sourced from List_of_postcode_districts_in_the_United_Kingdom with each Area having a corresponding KML file attached.
You can edit the KML directly, eg: CV_postcode_area which can also be accessed as raw data.
For the code? yes, please do.
All data in this repository is © Wikipedia contributors, the data is available under the Creative Commons Attribution ShareAlike 3.0 Unported License.