Last active
March 24, 2023 15:30
-
-
Save leonardehrenfried/d4e3d113ef8464461ecc135e79984326 to your computer and use it in GitHub Desktop.
New Fares API for HSL
This file contains hidden or 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
{ | |
"data": { | |
"plan": { | |
"itineraries": [ | |
{ | |
"duration": 2996, | |
"legs": [ | |
{ | |
"mode": "WALK", | |
"route": null, | |
"fareProducts": [] | |
}, | |
{ | |
"mode": "BUS", | |
"route": { | |
"shortName": "54", | |
"longName": "Itäkeskus(M)- Pitäjänmäki" | |
}, | |
"fareProducts": [ | |
{ | |
"instanceId": "daabd22d-0086-3e69-9a5b-15df5879e436", | |
"id": "faresv1:regular", | |
"name": "Itinerary fare for type regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
}, | |
{ | |
"instanceId": "4867e4b1-b8d3-3cc8-9cc0-733c08541943", | |
"id": "HSL:AB", | |
"name": "regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
} | |
] | |
}, | |
{ | |
"mode": "BUS", | |
"route": { | |
"shortName": "553", | |
"longName": "Hakunila-Malmi-Maunula-Leppävaara" | |
}, | |
"fareProducts": [ | |
{ | |
"instanceId": "daabd22d-0086-3e69-9a5b-15df5879e436", | |
"id": "faresv1:regular", | |
"name": "Itinerary fare for type regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
}, | |
{ | |
"instanceId": "4867e4b1-b8d3-3cc8-9cc0-733c08541943", | |
"id": "HSL:AB", | |
"name": "regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
} | |
] | |
}, | |
{ | |
"mode": "WALK", | |
"route": null, | |
"fareProducts": [] | |
} | |
] | |
}, | |
{ | |
"duration": 3296, | |
"legs": [ | |
{ | |
"mode": "WALK", | |
"route": null, | |
"fareProducts": [] | |
}, | |
{ | |
"mode": "BUS", | |
"route": { | |
"shortName": "54", | |
"longName": "Itäkeskus(M)- Pitäjänmäki" | |
}, | |
"fareProducts": [ | |
{ | |
"instanceId": "a265bed4-5252-307a-b855-10b3a757671a", | |
"id": "faresv1:regular", | |
"name": "Itinerary fare for type regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
}, | |
{ | |
"instanceId": "5410c3ca-55d5-30c5-85ac-3aab3974968f", | |
"id": "HSL:AB", | |
"name": "regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
} | |
] | |
}, | |
{ | |
"mode": "BUS", | |
"route": { | |
"shortName": "553", | |
"longName": "Hakunila-Malmi-Maunula-Leppävaara" | |
}, | |
"fareProducts": [ | |
{ | |
"instanceId": "a265bed4-5252-307a-b855-10b3a757671a", | |
"id": "faresv1:regular", | |
"name": "Itinerary fare for type regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
}, | |
{ | |
"instanceId": "5410c3ca-55d5-30c5-85ac-3aab3974968f", | |
"id": "HSL:AB", | |
"name": "regular", | |
"price": { | |
"currency": "EUR", | |
"cents": 310 | |
}, | |
"riderCategory": null, | |
"medium": null | |
} | |
] | |
}, | |
{ | |
"mode": "WALK", | |
"route": null, | |
"fareProducts": [] | |
} | |
] | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment