result.json (view raw)
1{
2 headers: Headers {
3 authorization: "Bearer eyJvcmciOiI2NDA2NTFhNTIyZmEwNTAwMDEyOWJiZTEiLCJpZCI6IjlhOTM4NDZkNTIxZjRhNmI4ZjNhZDgwNDFkODVhMzM5IiwiaCI6Im11cm11cjEyOCJ9",
4 "content-type": "application/xml"
5 },
6 method: "POST",
7 body: '<OJP xmlns="http://www.vdv.de/ojp" xmlns:siri="http://www.siri.org.uk/siri" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vdv.de/ojp ../../../../Downloads/OJP-changes_for_v1.1%20(1)/OJP-changes_for_v1.1/OJP.xsd">\n' +
8 " <OJPRequest>\n" +
9 " <siri:ServiceRequest>\n" +
10 " <siri:RequestTimestamp>2024-08-08T14:33:29.455Z</siri:RequestTimestamp>\n" +
11 " <siri:RequestorRef>Caroster.io</siri:RequestorRef>\n" +
12 " <OJPLocationInformationRequest>\n" +
13 " <siri:RequestTimestamp>2024-08-08T14:33:29.455Z</siri:RequestTimestamp>\n" +
14 " <siri:MessageIdentifier>1220</siri:MessageIdentifier>\n" +
15 " <InitialInput>\n" +
16 " <Name>Verbant</Name>\n" +
17 " </InitialInput>\n" +
18 " <Restrictions>\n" +
19 " <Type>stop</Type>\n" +
20 " <NumberOfResults>10</NumberOfResults>\n" +
21 " </Restrictions>\n" +
22 " </OJPLocationInformationRequest>\n" +
23 " </siri:ServiceRequest>\n" +
24 " </OJPRequest>\n" +
25 "</OJP>"
26}
27[
28 {
29 "name": "Plan-les-Ouates, Verbant",
30 "stopRef": "8595038",
31 "geoPosition": {
32 "latitude": "46.15728",
33 "longitude": "6.12567"
34 }
35 },
36 {
37 "name": "Porto Ronco, Crodolo Verbano",
38 "stopRef": "8505451",
39 "geoPosition": {
40 "latitude": "46.1331",
41 "longitude": "8.71899"
42 }
43 },
44 {
45 "name": "Minusio, Via Verbano",
46 "stopRef": "8580987",
47 "geoPosition": {
48 "latitude": "46.1749",
49 "longitude": "8.81667"
50 }
51 },
52 {
53 "name": "Bern, Kaufmännischer Verband",
54 "stopRef": "8590009",
55 "geoPosition": {
56 "latitude": "46.94569",
57 "longitude": "7.42747"
58 }
59 }
60]