Categorygithub.com/ockendenjo/osm-pt-validator
repository
0.0.0-20240910131524-86c8cc946f75
Repository: https://github.com/ockendenjo/osm-pt-validator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

OSM public transport validator

Validator for public transport bus routes in OpenStreetMap.

Provided as a Go script (runnable from terminal) and an AWS application for daily verification.

Features

  • Validates tags on the relation
  • Validates that platforms/stops are ordered before ways
  • Validates that ways are correctly ordered in a continuous path
  • Validates that oneway ways are traversed in the correct direction
  • Validates that nodes have expected tags
  • Validates order of stops, and they are part of the route

Limitations

  • Only for bus routes

Script

# go run scripts/validate/main.go [-npt] -r <relationId>
go run scripts/validate/main.go -r 103630
Usage:
  -f string
        Routes file (validation config read from file too)
  -npt
        Verify NaPTAN platform tags
  -r int
        Relation ID

AWS application

Requires AWS CDK to be installed

make deploy

Looks for .json files in s3://<bucketName>/routes/**.json

See routefile.schema.json for the JSON-schema or routes for example files.