This is a quick script I wrote to create a map showing which UK railway stations I've visited:
✨OpenStreetMap ✨for the map tiles ✨Leaflet.js ✨to render the map and the markers for each station ✨Transport API, Trainline EU and Wikipedia ✨to get the longitude/latitude coordinates of railway stations ✨Choices.js ✨for the station picker box
A couple of people asked, so I'm sharing the code here for them to play with -- but reader beware, this was a quick experiment, so it's fairly unpolished code.
Go to https://uk-stations-map.glitch.me/, and type in the names of stations you've visited. See them appear on the map before your eyes!
This is a one-off experiment I wrote for fun, not something I want to spend lots of time on. Requests for support or help to run this code will be ignored.