This repository gives a set of scripts to ease the bootstrapping of an OTP instance.
We invite you to review the OTP documentation for more infos about OTP.
- OTP front-end client (http://localhost:8081/)
- OTP api (accessible at http://localhost:8080/otp)
- At least 16Go of RAM
- docker
- docker-compose
- clone the repo
git clone [email protected]:nextmoov/nextmoov-smop-otp.git
- move into the created folder
cd nextmoov-smop-otp
- provide source data (see Modules)
- build the database (see with otp - takes 15 to 20 min)
docker-compose run otp-builder ./build
- run via docker-compose
docker-compose up
You need to provide both osm.pbf file and the static GTFS zip files in the data
directory alongside the docker-compose.yml file.
The provided static GTFS files needs to be named xxx-gtfs.zip (where xxx is only composed of lower case letters - what you put in place of xxx doesn't matter as long as it follow the template. The otp-builder will look through the folder for file named according to said template – see General > data-sources for more information).
It will start OTP in build mode with the files in ./data
as input. (See General > launching-the-modules for more information).
When you run docker-compose up
, it will start OTP with the built Graph (see Builder). It takes some times to start.
When the system is started you can acces your brand new OTP instance on http://localhost:8081/
And the API is accessible from http://localhost:8080/otp
A router-config.json
example file is provided to get GTFS RT update and JC Decaux / Villo. See General > data-sources about the GTFS RT feeds.