Skip to content

Instantly share code, notes, and snippets.

@leonardehrenfried
Created January 10, 2024 11:39
Show Gist options
  • Save leonardehrenfried/b1aeade7f7a00c3e28610a2896d075f1 to your computer and use it in GitHub Desktop.
Save leonardehrenfried/b1aeade7f7a00c3e28610a2896d075f1 to your computer and use it in GitHub Desktop.
{
"data": {
"plan": {
"itineraries": [
{
"duration": 4438,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "RAIL",
"route": {
"shortName": "Airport Line",
"longName": "Airport Line"
},
"fareProducts": [
{
"id": "22e312ad-9097-3858-a944-776be7e76524",
"product": {
"id": "septa-rail:AIR_to_CC",
"name": "septa-rail:AIR_to_CC",
"price": {
"currency": {
"code": "USD"
},
"amount": 6.75
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "RAIL",
"route": {
"shortName": "Fox Chase Line",
"longName": "Fox Chase Line"
},
"fareProducts": [
{
"id": "22e312ad-9097-3858-a944-776be7e76524",
"product": {
"id": "septa-rail:AIR_to_CC",
"name": "septa-rail:AIR_to_CC",
"price": {
"currency": {
"code": "USD"
},
"amount": 6.75
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "SUBWAY",
"route": {
"shortName": "MFL",
"longName": "Frankford TC to 69th St TC"
},
"fareProducts": [
{
"id": "4b1e6425-5b16-3ac6-9057-89575f1a68a9",
"product": {
"id": "septa-bus:21",
"name": "septa-bus:21",
"price": {
"currency": {
"code": "USD"
},
"amount": 2.5
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
}
]
},
{
"duration": 4459,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "RAIL",
"route": {
"shortName": "Airport Line",
"longName": "Airport Line"
},
"fareProducts": [
{
"id": "22e312ad-9097-3858-a944-776be7e76524",
"product": {
"id": "septa-rail:AIR_to_CC",
"name": "septa-rail:AIR_to_CC",
"price": {
"currency": {
"code": "USD"
},
"amount": 6.75
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "RAIL",
"route": {
"shortName": "Trenton Line",
"longName": "Trenton Line"
},
"fareProducts": [
{
"id": "a0be9b49-0d79-33b7-970f-8a74b1a229a3",
"product": {
"id": "septa-rail:CC_to_2S",
"name": "septa-rail:CC_to_2S",
"price": {
"currency": {
"code": "USD"
},
"amount": 6
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "BUS",
"route": {
"shortName": "25",
"longName": "FTC to Columbus Commons"
},
"fareProducts": [
{
"id": "51c17280-8a26-31be-8350-815dc2c54789",
"product": {
"id": "septa-bus:1",
"name": "septa-bus:1",
"price": {
"currency": {
"code": "USD"
},
"amount": 2.5
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
}
]
},
{
"duration": 4438,
"legs": [
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "RAIL",
"route": {
"shortName": "Airport Line",
"longName": "Airport Line"
},
"fareProducts": [
{
"id": "b7d60755-ae74-3dca-8187-fadeee16f441",
"product": {
"id": "septa-rail:AIR_to_CC",
"name": "septa-rail:AIR_to_CC",
"price": {
"currency": {
"code": "USD"
},
"amount": 6.75
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "RAIL",
"route": {
"shortName": "Warminster Line",
"longName": "Warminster Line"
},
"fareProducts": [
{
"id": "b7d60755-ae74-3dca-8187-fadeee16f441",
"product": {
"id": "septa-rail:AIR_to_CC",
"name": "septa-rail:AIR_to_CC",
"price": {
"currency": {
"code": "USD"
},
"amount": 6.75
},
"riderCategory": null,
"medium": null
}
}
]
},
{
"mode": "WALK",
"route": null,
"fareProducts": []
},
{
"mode": "SUBWAY",
"route": {
"shortName": "MFL",
"longName": "Frankford TC to 69th St TC"
},
"fareProducts": [
{
"id": "bf9e3549-f438-341a-870f-adc8daffe66c",
"product": {
"id": "septa-bus:21",
"name": "septa-bus:21",
"price": {
"currency": {
"code": "USD"
},
"amount": 2.5
},
"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