Skip to content

Latest commit

 

History

History
78 lines (49 loc) · 1.16 KB

README.md

File metadata and controls

78 lines (49 loc) · 1.16 KB

Map data server

Serve map data for the editor.

Environment Variables

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

Usage

npm i
npm start

Run in docker

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