For the last while I’ve been working on UI, UI, UI. A lot has happened, both superficial and fundamental.
The most visible change probably is that the bookmarks list has become cleaner and simpler – now you have to click a bookmark to see the next departure but that extra information right on the bookmarks page made it look a mess. Also a ton of small things have changed: now the icons show the right kind of transport symbol, I’ve added different colors to make them easier to distinguish, they can now be rearranged and deleted by dragging. I’m getting to a point where I’m actually quite happy with how it looks and works.
On the nearest stops front I’ve added a new card, departures from the nearest stop. There’s still some work left there – the logic for deciding whether you’re near a stop gets it wrong sometimes and it doesn’t refresh properly. But it’s getting closer.
What took the most work was the new add-bookmark flow. That required figuring out where all the stops are located and how the different subdivisions are located relative to each other – regions, cities, localities within cities, etc. I ended up relying on data from DAWA, Danmarks Adressers Web API. From that I got the nearest address in the country to each stop and then I used the components of the address for the subdivisions. I think the result is pretty decent – there needs to be a search function for it to be really useful but it’s a good place to start. One problem is evident in the screencapture though: stops in other countries end up all wrong because DAWA only handles Danish addresses, if you plug in a place outside the country you’ll get the nearest address within the country. That’s why right now Hamburg is listed as being on Langeland. I’ll fix that eventually.