I’m looking for a way to distinguish different vehicles from one another. On the face of it
vehcileId looks like a good candidate. Buses’ IDs are based on registration plates, so guaranteed to be unique. River buses are simple as they’re quite lower integers which aren’t zero padded. DLR trains don’t have vehicleIds, so we can safely ignore them. But I’m having trouble handling tube trains. I made the silly assumption that they’d also be unique, but then I was displaying weird routes (like a train that goes from Hampstead to South Kengsington via Grange Hill)
Looking at the API call: https://api.tfl.gov.uk/Vehicle/017/Arrivals, I’m seeing northern, district and central line trains all mixed together there, which really isn’t any use at all.
Is there a better identifier I can use? Or do a have to mangle my own together, combining several different fields together? I’d really rather not do that - I don’t even know which combination of fields will guarantee uniqueness…