Categories
Python

Train station accessibility

 

My girlfriend has been unwell recently and has been struggling with stairs. She travels a lot and often wants to know if a train station has step free access.

After a bit of tinkering, my personal assistant chatbot will now query the National Rail Knowledgebase API to return accessibility information for a given station.

And using a SQL implementation of Levenshtein distance will do a decent job at correctly parsing train stations from non-standard or typo’d names: