Public transport API
Optima Public Transport (PuT) ETA provides advanced functions to handle several elements of the PuT data model:
- Lines
- Streets (associated to Put lines)
- Trips
- Stop locations
- PuT events
The PuT endpoints are based on the General Transit Feed Specification (GTFS), a data specification used by thousands of public transport providers.
Important: Optima handles GTFS input packets compliant with either GTFS 1.0 and 2.0. The output is compliant with GTFS 1.0, without any data losses with respect to GTFS 2.0.
The available endpoints can be combined to build several workflows.
Here is a non-exhaustive list of three distinct workflows:
Trip management workflow
-
Getting all PuT events:
-
Getting the Estimated Time of Arrival (ETA) for a specific trip:
-
Getting information on all events that have an effect on a specific trip:
-
Disabling a specific trip (according to information resulting from the previous step):
Stop management workflow
-
Getting all PuT events:
-
Getting the Estimated Time of Arrival (ETA) for a specific stop:
-
Disabling a specific stop:
Vehicle management workflow
-
Getting the Estimated Time of Arrival (ETA) for a specific trip:
-
Getting information on all events that have an effect on a specific trip:
-
Getting the position of all vehicles involved in a specific trip, at a specific time:
Topics in this section