missinglink / uk-postcode-polygons

a dump of the UK postcode polygons from wikipedia in KML and GeoJSON format
94 stars 57 forks source link

uk-postcode-polygons

A dump of the UK postcode district and area polygons from Wikipedia in KML and GeoJSON format

Postcode areas? Districts?

See this helpful guide from Ideal Postcodes.

What is this?

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

Dependencies

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

How was this produced?

see update.sh.

Can I submit a pull request?

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.

License

All data in this repository is © Wikipedia contributors, the data is available under the Creative Commons Attribution ShareAlike 3.0 Unported License.

See: https://en.wikipedia.org/wiki/Wikipedia:Copyrights