Public Transport Enabler

Unleash public transport data in your Java project.
Alternatives To Public Transport Enabler
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Public Transport Enabler363
13 hours ago255gpl-3.0Java
Unleash public transport data in your Java project.
Friendly Public Transport Format97136 months ago8March 02, 201919cc-by-sa-4.0
A format for APIs, libraries and datasets containing and working with public transport data.
Trufi Core81
3 months ago59gpl-3.0Dart
Trufi - A Flutter app for Public Transportation
Osm2gtfs60
4 years ago30gpl-3.0Python
Turn OpenStreetMap data and schedule information into GTFS
Vbb Modules47
4 years ago
List of JavaScript modules for Berlin & Brandenburg public transport.
European Transport Operators42
2 years ago2
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.
Timisoarapublictransport24
5 years ago3otherJava
An Android App that scrapes public transport information (times/connections) and shows it on your Android.
Dvb19
4 years ago5mitSwift
🚆 Query Dresden's public transport system for current bus- and tramstop data in swift
Falsehoods17
2 years ago1
Falsehoods programmers believe in about public transportation.
Osm Pt Ngx Leaflet17
a year ago37mitTypeScript
An online web editor used to edit public transport routes on OpenStreetMap built with Angular, Leaflet and Webpack.
Alternatives To Public Transport Enabler
Select To Compare


Alternative Project Comparisons
Readme

Public Transport Enabler

This is a Java library allowing you to get data from public transport providers. Look into NetworkProvider.java for an overview of the API.

Using providers that require secrets

For some providers a secret like an API key is required to use their API. Copy the secrets.properties.template file to secrets.properties like so:

$ cp test/de/schildbach/pte/live/secrets.properties.template test/de/schildbach/pte/live/secrets.properties

You need to request the secrets directly from the provider. For Navitia based providers, you can request a secret here.

How to run live tests?

Make sure the test you want to run does not require a secret and if it does, see above for how to get one. Once you have the secret or if your provider does not need one, you can run the tests in your IDE. Both IntelliJ and Eclipse have excellent support for JUnit tests.

If you prefer to run tests from the command line, you can comment out the test exclude at the end of build.gradle and use this command to only execute a test for a single provider:

$ gradle -Dtest.single=ParisProviderLive test

This uses the ParisProvider as an example. Just replace it with the provider you want to test.

Popular Transport Projects
Popular Public Transportation Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Testing
Secret
Transport
Public Transportation