Skip to content

Instantly share code, notes, and snippets.

@leonardehrenfried
Created January 25, 2024 10:50
Show Gist options
  • Save leonardehrenfried/87716bade19dfff136c04da24546b391 to your computer and use it in GitHub Desktop.
Save leonardehrenfried/87716bade19dfff136c04da24546b391 to your computer and use it in GitHub Desktop.
{
"data": {
"plan": {
"itineraries": [
{
"duration": 4026,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "69",
"longName": "Kamppi-Pasila-Käpylä-Malmi-Jakomäki"
},
"fareProducts": [
{
"id": "0a843787-447c-304e-af4e-e022d0647148",
"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": "0a843787-447c-304e-af4e-e022d0647148",
"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": "0a843787-447c-304e-af4e-e022d0647148",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
}
]
},
{
"duration": 4013,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "553",
"longName": "Hakunila-Malmi-Maunula-Leppävaara"
},
"fareProducts": [
{
"id": "df61dcc8-f6a7-3104-aeff-65f47dc80920",
"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": "df61dcc8-f6a7-3104-aeff-65f47dc80920",
"product": {
"id": "hsl:AB",
"name": "regular",
"price": {
"currency": {
"code": "EUR"
},
"amount": 2.95
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
}
]
},
{
"duration": 3854,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "600",
"longName": "Rautatientori-Kartanonkoski-Lentoasema"
},
"fareProducts": [
{
"id": "7f0bacdc-14a7-38d0-829d-55322905af4a",
"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": "7f0bacdc-14a7-38d0-829d-55322905af4a",
"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": "7f0bacdc-14a7-38d0-829d-55322905af4a",
"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