Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leifgehrmann/ncn-milepost-openstreetmap-checker
A script to check National Cycle Network mileposts with OpenStreetMap data
https://github.com/leifgehrmann/ncn-milepost-openstreetmap-checker
cycling openstreetmap python
Last synced: about 16 hours ago
JSON representation
A script to check National Cycle Network mileposts with OpenStreetMap data
- Host: GitHub
- URL: https://github.com/leifgehrmann/ncn-milepost-openstreetmap-checker
- Owner: leifgehrmann
- License: mit
- Created: 2019-03-29T22:52:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T06:07:19.000Z (9 months ago)
- Last Synced: 2024-04-08T07:27:03.469Z (9 months ago)
- Topics: cycling, openstreetmap, python
- Language: Python
- Homepage:
- Size: 198 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ncn-milepost-openstreetmap-checker
A script to check National Cycle Network mileposts with OpenStreetMap data.## NCN mileposts?
All across the UK there are these things called [Millennium Mileposts].
Keep an eye out for them while cycling around!## What is this script for?
According to the [OpenStreetMap wiki][Sustrans Millennium Mileposts], there
are ~1000 known mileposts. OpenStreetMap.org does not map all of these mileposts,
and even for the ones that are, it's possible the data is incomplete, such as missing
reference number or having the incorrect milepost type.To make sure the wiki and or map is up to date and consistent, this script
can be used as a tool to identify which mileposts are missing or incorrect.## Data sources
* Sustrans IDs and other milepost data are from the OpenStreetMap wiki page on
[Sustrans Millennium Mileposts]
* OSM data from using the [Overpass API]## Usage
Make sure to install python3.
```
cd checker
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python check.py
```This will generate a CSV file in the `output` folder.
## Viewing the data
While the CSV is useful, I've also created a viewer to render the CSV data into something more accessible at:
https://ncn-milepost-openstreetmap-checker.leifgehrmann.comYou can run the viewer on your own machine by running the following:
(Make sure to install [NPM](https://nodejs.org/en/download/) and [Hugo](https://gohugo.io/getting-started/installing/))
```
cd viewer
npm install
hugo server
```[Millennium Mileposts]: https://en.wikipedia.org/wiki/National_Cycle_Network#Mileposts
[Sustrans Millennium Mileposts]: https://wiki.openstreetmap.org/wiki/Sustrans_Millennium_Mileposts
[Overpass API]: https://overpass-api.de