Skip to content

antoine-de/transport-topo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transit topo tools

https://topo.transport.data.gouv.fr/ a semantic database of transit objects (stops, lines, networks…).

This program is a toolkit to populate that database from a GTFS file.

It allows to populate missing features in the database.

The tool is designed to be idempotent: importing twice the same file, or different files from the same producer won’t generate any duplicate.

Installation

Transit topo tools are written in Rust.

You need an up to date rust tool-chain (commonly installed with rustup).

Configuration

You need to configure config.toml in order to set which are the ids of basic identifiers (“bus”…) or property (“gtfs_id”).

See config.example.toml how to set it up.

Running

Identifiers of entities can be the same across different producers. That is why we require to set a producer with the --producer (or -p) flag.

For instance, to import all the lines of the producer Q4 from the local file gtfs.zip, run:

cargo run --release -- -p Q4 -i gtfs.zip

About

Tool to manipulate data in topo.transport.data.gouv.fr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%