#openstreetmap #osm #transit #osm-pbf #extract #transport #public

bin+lib osm_transit_extractor

Extract public transport data from an OpenStreetMap file

10 releases (breaking)

0.9.0 Feb 9, 2023
0.8.0 Sep 21, 2022
0.7.0 Mar 14, 2022
0.5.0 May 25, 2021
0.2.1 Jun 20, 2019

#1360 in Parser implementations

Download history 14/week @ 2024-02-19 18/week @ 2024-02-26 159/week @ 2024-04-01

159 downloads per month

AGPL-3.0

100KB
1K SLoC

osm-transit-extractor GitHub Workflow Status

This crate is a library to extract public transport data from an OpenStreetMap file. A CSV output with several files is also provided as a quick mean to manipulate public transport data from OSM with an external tool.

The crate osmpbfreader is used to read the provided OpenStreetMap PBF files

Description of the extraction process is (details here)[./documentation/README.md].

How to use

Run the program with --help to display available parameters. The simplest way to use it is : osm-transit-extractor -i name_of_the_osm_file.osm.pbf

This command will extract the public transport data and write them to CSV files in the current directory. The output directory can be changed with the use of the parameter -o /path/to/the/dest/directory/

Dependencies

~8–19MB
~251K SLoC