Ojp Sdk
Created by Michael Ruppen on 08.04.2024
Parameters
The url where the SDK shall point to do the OJP requests ex: https://api.opentransportdata.swiss/
The specific endpoint on the baseUrl to request ex: ojp20 => https://api.opentransportdata.swiss/ojp20
The reference for requests to help tracking on the OJP backend
Define custom http headers ex. key: "Authorization" value: "Bearer xyz"
Set the timeZone you want the dateTimes to be parsed at, default is "Europe/Zurich"
Constructors
Functions
Request a list of Place Results based on the given geographical point
Request a list of Place Results based on the given search term
You can read an XML file of a tripRequest and use this function to get the parsed version out of it. This method is only used so you can have a real cased parsed object and for example test your UI.
Load further trips according to your last trip item of the tripResult list. Need to do a requestTrips call first!
Load previous trips according to your first trip item of the tripResult list. Need to do a requestTrips call first!
Refines a previously requested trip by retrieving more detailed or updated trip information
Request a list of trips