beckn / gtfs-to-beckn

A simple BPP implementation that turns GTFS data into a beckn catalog. Discovery flow is implemented here.
MIT License
0 stars 9 forks source link

GTFS to beckn Adapter

Release History

Version Release Date Contributors
0.5 21st Feb, 2022 Nirmal Rajeevan

Changelog

None

Overview

A simple BPP implementation that converts GTFS data into a beckn catalog. Discovery flow is implemented here. Transfers are currently not supported.

This application reads static GTFS data from gtfs-data folder and returns catalog of available fare products between stations including the schedule and fare.

You can find exact mappings of GTFS to beckn schema here.

You can find a general how it works document here.

Installation

Installation via CLI

This application can be installed just like any other NodeJS application by running,

npm install

To build this application, just run

npm run build

Building the application using Docker

Run the following command : docker build . -t gtfs-bpp

To run the built image run the command : docker run -p 8000:8000 --name gtfs-bpp-image --env MAPS_KEY=< key > gtfs-bpp

Environment Variables

The following environment variables should be set.

Optional