Last active
November 30, 2022 10:23
-
-
Save vasile/fd2046632974ceef8f898db5d0f4c6b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<OJP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns="http://www.siri.org.uk/siri" version="1.0" | |
xmlns:ojp="http://www.vdv.de/ojp" xsi:schemaLocation="http://www.siri.org.uk/siri ../ojp-xsd-v1.0/OJP.xsd"> | |
<OJPRequest> | |
<ServiceRequest> | |
<RequestTimestamp>2022-11-30T10:00:00.000Z</RequestTimestamp> | |
<RequestorRef>IRMA</RequestorRef> | |
<ojp:OJPLocationInformationRequest> | |
<RequestTimestamp>2022-11-30T10:00:00.000Z</RequestTimestamp> | |
<MessageIdentifier>4711</MessageIdentifier> | |
<ojp:InitialInput> | |
<LocationName>1-1-1-CH*SWIEE121754</LocationName> | |
</ojp:InitialInput> | |
<ojp:Restrictions> | |
<ojp:Type>poi</ojp:Type> | |
<ojp:PointOfInterestFilter> | |
<ojp:PointOfInterestCategory> | |
<ojp:OsmTag> | |
<ojp:Tag>amenity</ojp:Tag> | |
<ojp:Value>charging_station</ojp:Value> | |
</ojp:OsmTag> | |
</ojp:PointOfInterestCategory> | |
</ojp:PointOfInterestFilter> | |
</ojp:Restrictions> | |
</ojp:OJPLocationInformationRequest> | |
</ServiceRequest> | |
</OJPRequest> | |
</OJP> | |
Later Edit with Response | |
==== | |
<?xml version="1.0" encoding="UTF-8"?> | |
<siri:OJP xmlns:siri="http://www.siri.org.uk/siri" | |
xmlns:ojp="http://www.vdv.de/ojp" version="1.0"> | |
<siri:OJPResponse> | |
<siri:ServiceDelivery> | |
<siri:ResponseTimestamp>2022-11-30T10:22:42Z</siri:ResponseTimestamp> | |
<siri:ProducerRef>EFAController10.5.17.10-OJP-EFA02-P</siri:ProducerRef> | |
<siri:Status>true</siri:Status> | |
<ojp:OJPLocationInformationDelivery> | |
<siri:ResponseTimestamp>2022-11-30T10:22:42Z</siri:ResponseTimestamp> | |
<siri:RequestMessageRef>4711</siri:RequestMessageRef> | |
<siri:Status>true</siri:Status> | |
<ojp:CalcTime>37</ojp:CalcTime> | |
<ojp:Location> | |
<ojp:Location> | |
<ojp:PointOfInterest> | |
<ojp:PointOfInterestCode>coord:976290:6194663:MRCV:Ascona </ojp:PointOfInterestCode> | |
<ojp:PointOfInterestName> | |
<ojp:Text xml:lang="de">UNBEKANNT</ojp:Text> | |
</ojp:PointOfInterestName> | |
<ojp:PointOfInterestCategory> | |
<ojp:OsmTag> | |
<ojp:Tag>amenity</ojp:Tag> | |
<ojp:Value>charging_station</ojp:Value> | |
</ojp:OsmTag> | |
</ojp:PointOfInterestCategory> | |
</ojp:PointOfInterest> | |
<ojp:LocationName> | |
<ojp:Text xml:lang="de">Ascona</ojp:Text> | |
</ojp:LocationName> | |
<ojp:GeoPosition> | |
<siri:Longitude>8.77016</siri:Longitude> | |
<siri:Latitude>46.15571</siri:Latitude> | |
</ojp:GeoPosition> | |
<ojp:Attribute> | |
<ojp:Text> | |
<ojp:Text xml:lang="de">UNBEKANNT</ojp:Text> | |
</ojp:Text> | |
<ojp:Code>1-1-1-CH*SWIEE121754</ojp:Code> | |
</ojp:Attribute> | |
<ojp:Extension> | |
<ojp:LocationExtensionStructure> | |
<ojp:locationStatus>AVAILABLE</ojp:locationStatus> | |
<ojp:connectorTypes> | |
<ojp:connectorType> | |
<ojp:attribute> | |
<ojp:key>CHARGER_CONNECTION_COUNT</ojp:key> | |
<ojp:value>2</ojp:value> | |
</ojp:attribute> | |
</ojp:connectorType> | |
<ojp:connectorType> | |
<ojp:attribute> | |
<ojp:key>CURRENT</ojp:key> | |
<ojp:value>DC</ojp:value> | |
</ojp:attribute> | |
<ojp:attribute> | |
<ojp:key>PLUG</ojp:key> | |
<ojp:value>2_CCS_COMBO_CABLE_ATTACHED</ojp:value> | |
</ojp:attribute> | |
</ojp:connectorType> | |
<ojp:connectorType> | |
<ojp:attribute> | |
<ojp:key>CURRENT</ojp:key> | |
<ojp:value>DC</ojp:value> | |
</ojp:attribute> | |
<ojp:attribute> | |
<ojp:key>PLUG</ojp:key> | |
<ojp:value>4_CHADEMO</ojp:value> | |
</ojp:attribute> | |
</ojp:connectorType> | |
</ojp:connectorTypes> | |
<ojp:chargerConnections></ojp:chargerConnections> | |
</ojp:LocationExtensionStructure> | |
</ojp:Extension> | |
</ojp:Location> | |
<ojp:Complete>true</ojp:Complete> | |
<ojp:Probability>1</ojp:Probability> | |
</ojp:Location> | |
</ojp:OJPLocationInformationDelivery> | |
</siri:ServiceDelivery> | |
</siri:OJPResponse> | |
</siri:OJP> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@vasile I checked your Request, he seems to be OK. To which server do you send the Request? I tested on PROD (https://api.opentransportdata.swiss/ojp2020) and TEST (https://api.opentransportdata.swiss/ojp2020). Both worked for me.