Serve map data for the editor.
This project uses environment variables to manage configuration. Before running the application, make sure to create a .env
file in the root directory based on the provided .env.example
file. You can copy the contents of .env.example
and replace the placeholder values with your actual configuration values.
Example .env.example
file:
PORT=3000
npm i
npm start
Install docker and docker compose and execute
docker-compose up -d
Serve the data in data/
directory in the following endpoints:
- lines
Get all lines
GET http://localhost:2999/lines
- stops
Get stops for a particular line
GET localhost:2999/stops/Ligne_160_A
- ways
Get ways for a particular line
GET http://localhost:2999/ways/Ligne_160_A
- busLines
Get lines from another provider
GET http://localhost:2999/busLines
- lineTypes
Get different type of lines
GET http://localhost:2999/lineTypes
- busStops
Get bus stops from another provider
GET http://localhost:2999/busStops