Import Honduras trail data to production #87

Closed
opened 2026-05-06 21:25:25 +00:00 by spikerj · 0 comments
Owner

Summary

Importing Honduras trail data (~6,605 quality-filtered trails) into the SpikerSoft production trail API.

Details

  • Source: OpenStreetMap via Overpass API
  • Region codes: HN-AT, HN-CH, HN-CL, HN-CM, HN-CP, HN-CR, HN-EP, HN-FM, HN-GD, HN-IB, HN-IN, HN-LE, HN-LP, HN-OC, HN-OL, HN-SB, HN-VA, HN-YO (all 18 departments)
  • Trails: 6,605 after quality filtering (from 30,224 raw features)
  • Department assignment: Point-in-polygon classification using geoBoundaries HND ADM1 boundaries via Shapely
  • Import method: import_trails.py --prod --country HN --state hn
  • Status: Import running in background

Quality Filters Applied

  • Excluded unnamed highway=footway features (urban sidewalks)
  • Excluded unnamed features with paved/concrete/asphalt surfaces
  • Excluded unnamed features with fewer than 20 coordinate points
  • Excluded private/no-access features
  • Kept all 595 named trails + 6,010 substantial unnamed paths

Data Pipeline

  • trails/hn/download_osm.py — Overpass API queries for hiking routes + standalone paths/tracks
  • trails/hn/convert.py — OSM-to-SpikerSoft conversion with department classification
  • trails/hn/departments.geojson — geoBoundaries ADM1 polygons for point-in-polygon

Source Documentation

  • trails/hn/SOURCE.md documents the OSM data origin and conversion process
## Summary Importing Honduras trail data (~6,605 quality-filtered trails) into the SpikerSoft production trail API. ## Details - **Source**: OpenStreetMap via Overpass API - **Region codes**: `HN-AT`, `HN-CH`, `HN-CL`, `HN-CM`, `HN-CP`, `HN-CR`, `HN-EP`, `HN-FM`, `HN-GD`, `HN-IB`, `HN-IN`, `HN-LE`, `HN-LP`, `HN-OC`, `HN-OL`, `HN-SB`, `HN-VA`, `HN-YO` (all 18 departments) - **Trails**: 6,605 after quality filtering (from 30,224 raw features) - **Department assignment**: Point-in-polygon classification using geoBoundaries HND ADM1 boundaries via Shapely - **Import method**: `import_trails.py --prod --country HN --state hn` - **Status**: Import running in background ## Quality Filters Applied - Excluded unnamed `highway=footway` features (urban sidewalks) - Excluded unnamed features with paved/concrete/asphalt surfaces - Excluded unnamed features with fewer than 20 coordinate points - Excluded private/no-access features - Kept all 595 named trails + 6,010 substantial unnamed paths ## Data Pipeline - `trails/hn/download_osm.py` — Overpass API queries for hiking routes + standalone paths/tracks - `trails/hn/convert.py` — OSM-to-SpikerSoft conversion with department classification - `trails/hn/departments.geojson` — geoBoundaries ADM1 polygons for point-in-polygon ## Source Documentation - `trails/hn/SOURCE.md` documents the OSM data origin and conversion process
Sign in to join this conversation.