StaticinitInits LIR with bounding box
bounding box data as string ("minLon,minLat,maxLon,maxLat") or array [minLon, minLat, maxLon, maxLat]
OJP_Types.PlaceTypeEnum "stop" | "address" | "poi" | "location" | "topographicPlace"
maximum number of results to return (default: 10)
StaticinitInits LIR with location name
string, location name
OJP_Types.PlaceTypeEnum "stop" | "address" | "poi" | "location" | "topographicPlace"
maximum number of results to return (default: 10)
StaticinitInits LIR with place ref or literal coords
place reference or coordinates string (e.g. ch:1:sloid:7000:4:7 or 46.94857,7.43683 (latitude, longitude in WGS84))
maximum number of results to return (default: 10)
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
ProtectedconstructorThe payload object that gets serialized to XML for the request
Protected_Builds the XML request string for the LIR
The language to use for the request (e.g. "en", "de")
The requestor reference identifier
XML configuration options for building the request, default DefaultXML_Config OJP 2.0
A formatted XML string representing the Location Information Request
ProtectedupdateProtected StaticcomputeProtected StaticDefault
LocationInformationRequest (LIR) class
Instances are created via static methods below. Direct construction is intentionally disabled.
initWithLocationName- use location name, i.e.BerninitWithPlaceRef- use place ref or literal coordinates (lat, lng)initWithBBOX- use bounding box to filter locations