StaticinitInitializes a TripRequest object with either place references or coordinates.
The origin place reference string - place reference or coordinate literals (lat, lon WGS84)
The destination place reference string - place reference or coordinate literals (lat, lon WGS84)
StaticinitInitializes a TripRequest object with Place OJP schema objects
The origin place
The destination place
StaticinitCreates a new instance of the request class with a mock request XML string
This method is used for testing purposes to simulate API requests with predefined XML payloads. When this mock is set, the request will use the provided XML instead of building a new one.
The XML string to use as the mock request
A new instance of the request class with the mock set
StaticinitCreates a new instance of the request class with a mock response XML string
This method is used for testing purposes to simulate API responses with predefined XML payloads. When this mock is set, the request will use the provided XML response instead of making actual API calls.
The XML string to use as the mock response
A new instance of the request class with the mock set
Updates arrival at destination datetime in the request payload
Updates departure from origin datetime in the request payload
This modifier works only in OJP 2.0
This modifier works only in OJP 2.0
This modifier works only in OJP 2.0
This modifier works only in OJP 2.0
ProtectedconstructorThe payload object that gets serialized to XML for the request (OJP v1)
Protected_Builds the XML request string for the TR
The language to use for the request (e.g. "en", "de")
The requestor reference identifier
XML configuration options for building the request, default XML_BuilderConfigOJPv1 OJP 1.0
A formatted XML string representing the Location Information Request
TripRequest (TR) class for OJP 1.0
Instances are created via static methods below. Direct construction is intentionally disabled.
initWithPlaceRefsOrCoords- use place refs or literal coordinates (lat, lng) for origin, destinatioinitWithPlaces- use Place OJP XSD schema objects