diff --git a/src/components/vehicleselected.svelte b/src/components/vehicleselected.svelte index dd4a8378..fdccd672 100644 --- a/src/components/vehicleselected.svelte +++ b/src/components/vehicleselected.svelte @@ -56,9 +56,13 @@ fetchSwiftlyInformation(); }); + //super jank, should replace with a backend api in Aspen soon const SWIFTLY_KEYS: Record = { 'f-octa~rt': 'octa', - "f-metro~losangeles~bus~rt": "lametro" + 'f-metro~losangeles~bus~rt': 'lametro', + 'f-metro~losangeles~rail~rt': 'lametro-rail', + 'f-northcountrytransitdistrict~rt': 'nctd', + 'f-bigbluebus~rt': 'big-blue-bus' }; function fetchSwiftlyInformation(): void { @@ -195,6 +199,16 @@

{selectedVehicleLookup.realtime_feed_id}

ID: {selectedVehicleLookup.id}

+ {#if swiftly != null} + {#if swiftly_fetch_metadata != null} + {#if swiftly_fetch_metadata.id === selectedVehicleLookup.id && swiftly_fetch_metadata.realtime_feed_id === selectedVehicleLookup.realtime_feed_id} + {#if swiftly.headsign} +

{swiftly.headsign}

+ {/if} + {/if} + {/if} + {/if} +