The repository includes a GTFS-to-GeoJSON generator:
- Script:
scripts/generate-gtfs.ps1 - Default source:
https://storage.googleapis.com/marduk-production/outbound/gtfs/rb_sky-aggregated-gtfs.zip - Default output:
gtfs.geojson
Run from repository root:
pwsh -File ./scripts/generate-gtfs.ps1If the feed must be provided locally:
pwsh -File ./scripts/generate-gtfs.ps1 -InputZipPath /path/to/feed.zipgtfs.geojson is a GeoJSON FeatureCollection with:
featurescontaining:- stop features (
Point) with stop identifiers, names, coordinates, and parent station metadata - line features (
LineString) with route identifiers/names/type and trip/service metadata
- stop features (
frequencycontaining grouped scheduled-service metadata for line/stop frequency calculations- top-level metadata (
generated,source,counts,description)
The NVDB generator fetches speed limits, roundabouts, tunnels, and public-transport hubs for every Bergen bydel. It writes standard GeoJSON, including valid [longitude, latitude] coordinates for point objects.
pwsh -File ./scripts/generate-nvdb.ps1The script uses areas.geojson as its area source and overwrites nvdb.geojson by default.