Skip to content

Instantly share code, notes, and snippets.

@leonardehrenfried
Created January 22, 2024 12:56
Show Gist options
  • Save leonardehrenfried/2ec9b2a0a0e4959b6ede8badc19bcedb to your computer and use it in GitHub Desktop.
Save leonardehrenfried/2ec9b2a0a0e4959b6ede8badc19bcedb to your computer and use it in GitHub Desktop.
{
"data": {
"plan": {
"itineraries": [
{
"duration": 4045,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "69",
"longName": "Kamppi-Pasila-Käpylä-Malmi-Jakomäki"
},
"fareProducts": [
{
"id": "0350349a-d85e-3639-8262-173d8df60cb8",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "BUS",
"route": {
"shortName": "510",
"longName": "Herttoniemi (M)-Pasila-Tapiola(M)-Espoonl.(M)-Kivenlahti (M)"
},
"fareProducts": [
{
"id": "0350349a-d85e-3639-8262-173d8df60cb8",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "549",
"longName": "Tapiola(M)-Mankkaa-Kauniainen-Jorvi"
},
"fareProducts": [
{
"id": "0350349a-d85e-3639-8262-173d8df60cb8",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
}
]
},
{
"duration": 4041,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "553",
"longName": "Hakunila-Malmi-Maunula-Leppävaara"
},
"fareProducts": [
{
"id": "ba02a7e2-4625-3ce9-884b-cc23d8b8e37b",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "114",
"longName": "Matinkylä (M)-Urheilupuisto (M)-Mankkaa-Kilo-Leppävaara"
},
"fareProducts": [
{
"id": "ba02a7e2-4625-3ce9-884b-cc23d8b8e37b",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
}
]
},
{
"duration": 3876,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "600",
"longName": "Rautatientori-Kartanonkoski-Lentoasema"
},
"fareProducts": [
{
"id": "d8960809-bd91-371f-a6ea-ed8a49bc206c",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "SUBWAY",
"route": {
"shortName": "M1",
"longName": "Kivenlahti - Vuosaari"
},
"fareProducts": [
{
"id": "d8960809-bd91-371f-a6ea-ed8a49bc206c",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "114",
"longName": "Matinkylä (M)-Urheilupuisto (M)-Mankkaa-Kilo-Leppävaara"
},
"fareProducts": [
{
"id": "d8960809-bd91-371f-a6ea-ed8a49bc206c",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"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