All Projects → denysvitali → gtfs-server

denysvitali / gtfs-server

Licence: MIT License
GTFS API Server, written in Rust

Programming Languages

rust
11053 projects
Less
1899 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gtfs-server

r5r
ipeagit.github.io/r5r/
Stars: ✭ 90 (+592.31%)
Mutual labels:  gtfs, transport
open-bus
🚌 Analysing Israel's public transport data
Stars: ✭ 65 (+400%)
Mutual labels:  gtfs, transport
public-transit-tools
Tools for working with GTFS public transit data in ArcGIS
Stars: ✭ 126 (+869.23%)
Mutual labels:  gtfs, transport
Mpk Ttss
Improved www.ttss.krakow.pl
Stars: ✭ 63 (+384.62%)
Mutual labels:  gtfs, transport
Friendly Public Transport Format
A format for APIs, libraries and datasets containing and working with public transport data.
Stars: ✭ 69 (+430.77%)
Mutual labels:  gtfs, transport
transxchange2gtfs
tool to convert transxchange data into a GTFS feed
Stars: ✭ 26 (+100%)
Mutual labels:  gtfs, transport
Tidytransit
R package for working with the General Transit Feed Specification (GTFS)
Stars: ✭ 84 (+546.15%)
Mutual labels:  gtfs, transport
european-transport-operators
NOT UP-TO-DATE ANYMORE, UNMAINTAINED. CHECK european-transport-feeds INSTEAD. List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.
Stars: ✭ 47 (+261.54%)
Mutual labels:  gtfs, transport
cdk-ecr-deployment
A CDK construct to deploy docker image to Amazon ECR
Stars: ✭ 51 (+292.31%)
Mutual labels:  transport
pt2matsim
Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.
Stars: ✭ 29 (+123.08%)
Mutual labels:  gtfs
planner.js
JavaScript library for route planning 🚴‍♂️🚉🚀
Stars: ✭ 31 (+138.46%)
Mutual labels:  gtfs
DataBridge.NET
Configurable data bridge for permanent ETL jobs
Stars: ✭ 16 (+23.08%)
Mutual labels:  transport
transitime
TheTransitClock real-time transit information system
Stars: ✭ 60 (+361.54%)
Mutual labels:  gtfs
open-gat
Open source software for geographic transport data analysis and planning
Stars: ✭ 80 (+515.38%)
Mutual labels:  transport
pct-shiny
The Shiny map for Local Authorites
Stars: ✭ 20 (+53.85%)
Mutual labels:  transport
GTFS
.NET implementation of a General Transit Feed Specification (GTFS) feed parser.
Stars: ✭ 55 (+323.08%)
Mutual labels:  gtfs
gtfs-utils
Utilities to process GTFS data sets.
Stars: ✭ 19 (+46.15%)
Mutual labels:  gtfs
citylines
Citylines.co is a collaborative platform for mapping the transit systems of the world!
Stars: ✭ 53 (+307.69%)
Mutual labels:  transport
retro-gtfs
Collect real-time transit data and process it into a retroactive GTFS 'schedule' which can be used for routing/analysis
Stars: ✭ 45 (+246.15%)
Mutual labels:  gtfs
transitland-atlas
an open directory of mobility feeds and operators — powers both Transitland v1 and v2
Stars: ✭ 55 (+323.08%)
Mutual labels:  gtfs

GTFS Server

A General Transit Feed Specification (GTFS) server to expose some REST APIs.

Requirements

  • Rust (Nightly, preferably)
  • PostgreSQL with GIS (PostGIS)
  • (Docker)

Data Visualization (not required)

  • QGIS

Instructions

Download & Extract a feed

mkdir resources/gtfs/sbb/
wget https://opentransportdata.swiss/en/dataset/timetable-2018-gtfs/permalink -O resources/gtfs/sbb/gtfs.zip
cd resources/gtfs/sbb/
unzip gtfs.zip

Deploy with Docker

PostGIS

docker network create --subnet=172.18.0.0/16 gtfs-server-net
docker run --name gtfs-server-db --net gtfs-server-net --ip 172.18.0.2 -e POSTGRES_PASSWORD=mysecretpassword -d mdillon/postgis

Run the server

cargo run

Check if the data was imported

http://127.0.0.1:8080/api/stops

Data import

feed-id is your feed unique identifier. It will be used across the DB to generate the stop IDs. This will allow us to filter out the feeds that are no longer actives once the DB is populated.

Stops

http://127.0.0.1:8080/api/import/stops/feed-id

Trips

http://127.0.0.1:8080/api/import/stops/feed-id

Endpoints & Objects

Check the Documentation for more info about the endpoints and the objects.

Screenshots

/api/trips/<stop_id>

/api/trips/<stop_id>

/api/stops/

/api/stops/

/api/stops/near/<latitude>/<longitude>/<range>

/api/stops/near/<latitude>/<longitude>/<range>

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].