Python scripts to convert US National Park Service Trail and POI data to an OSM-compatible schema.
Supported feature types:
- Trails
- Trailheads
- (more to come soon)
You can download the required datasets from the following URL in GeoJSON format.
- Trails: https://public-nps.opendata.arcgis.com/datasets/nps-trails-geographic-coordinate-system/explore
- POIs: https://public-nps.opendata.arcgis.com/datasets/nps-points-of-interest-pois-geographic-coordinate-system/explore
The justfile
in this repo can be used to run the conversion using the just
command runner. Or you can just paste the same series of commands into your shell.
The input files are assumed to be in ~/Downloads
; edit the script to change this path if required.
The code requires GDAL (for the ogr2ogr
command), jq
, and a fairly recent version of Python (3.10+).
This code is available under the ISC license. See the LICENSE file for details.