Ojp Sdk
constructor(baseUrl: String, endpoint: String, requesterReference: String, httpHeaders: HashMap<String, String> = hashMapOf(), defaultTimeZone: ZoneId = ZoneId.of("Europe/Zurich"))
Parameters
base Url
The url where the SDK shall point to do the OJP requests ex: https://api.opentransportdata.swiss/
endpoint
The specific endpoint on the baseUrl to request ex: ojp20 => https://api.opentransportdata.swiss/ojp20
requester Reference
The reference for requests to help tracking on the OJP backend
http Headers
Define custom http headers ex. key: "Authorization" value: "Bearer xyz"
default Time Zone
Set the timeZone you want the dateTimes to be parsed at, default is "Europe/Zurich"