Skip to content

a dump of the UK postcode polygons from wikipedia in KML and GeoJSON format

Notifications You must be signed in to change notification settings

missinglink/uk-postcode-polygons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a dump of the UK postcode polygons from wikipedia in KML and GeoJSON format

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages