Skip to content

'BetaX_map-data-server' helps you explore Antananarivo's Taxibe bus routes effortlessly using Node.js and Express

Notifications You must be signed in to change notification settings

Rohan29-AN/BetaX_map-data-server

 
 

Repository files navigation

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

About

'BetaX_map-data-server' helps you explore Antananarivo's Taxibe bus routes effortlessly using Node.js and Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.9%
  • Dockerfile 3.1%