Skip to content

Instantly share code, notes, and snippets.

@leonardehrenfried
Created January 10, 2024 13:15
Show Gist options
  • Save leonardehrenfried/ae711633a1c10d4db24d3ab38421a51a to your computer and use it in GitHub Desktop.
Save leonardehrenfried/ae711633a1c10d4db24d3ab38421a51a 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": "46215090-c555-3980-963f-e065a4124ca0",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "0350349a-d85e-3639-8262-173d8df60cb8",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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": "46215090-c555-3980-963f-e065a4124ca0",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "34d0d91a-229b-3820-8887-21f66f49be77",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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": "46215090-c555-3980-963f-e065a4124ca0",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "6a4c0d04-f79c-38a8-8acd-bcd1d3a98e99",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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": "1487386f-474d-3c27-baa1-d1ef3e0b15d0",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "ba02a7e2-4625-3ce9-884b-cc23d8b8e37b",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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": "1487386f-474d-3c27-baa1-d1ef3e0b15d0",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "54d31100-0b64-3b85-8b13-620bd04164d8",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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": "7e0c0343-b98d-334a-b9b5-889a0d9414fb",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "d8960809-bd91-371f-a6ea-ed8a49bc206c",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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": "7e0c0343-b98d-334a-b9b5-889a0d9414fb",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "1930ea35-dea7-3040-9dd1-0b2dfc51f15a",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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": "7e0c0343-b98d-334a-b9b5-889a0d9414fb",
"product": {
"id": "hsl:regular",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
},
{
"id": "f9ac76c0-0c65-3663-82b4-58a39a6db5e4",
"product": {
"id": "hsl:AB",
"name": "hsl:AB",
"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