Catch-up to Lookout V1: points of interest
See the announcement for context, but TLDR: this is a catch-up devblog-style post on where I am with Lookout, which is currently at V1 alpha1. Today we'll focus on getting "water crossings" as points of interest.
The original idea for Lookout came when I was travelling through Denmark in late 2025 on the way to visit a friend who lives there. I was on the way from Hamburg and there are some nice views down rivers, but they are only occasional, and if you don't know one is coming, you won't know to look. This is why I selected "water crossings" as my first kind of point of interest for Lookout.
I knew Overture Maps contained information about water bodies and train lines from my work on Linzer (where water is used as a mask) and spelunking on finding Tube stations in London. In principle, finding where water crosses train lines should be as simple as doing an intersection between them. However, as with many things in life, geo brings you edge cases.
We don't attempt to handle all of these cases in their entirety, like the fact that whilst you can conceptually think of a single train line, it's often actually multiple tracks, and each of these can be multiple segments.
A future version of Lookout would probably benefit from collapsing parallel tracks into one. For simplicity we allow ourselves to end up with a cluster of water crossings, one for each track, but deduped to only include one segment per track/water overlap (if multiple segments of a track overlap the same water body, then we choose one segment to be the representative):
However, some edge cases are more fundamental to the use-case of Lookout. I noticed a water-crossing appearing in an area I recognised in Hamburg, which surprised me. Have a look at this, can you spot anything?
Yes, that's right, these lines are, of course, subway lines running underwater. You can try to filter these out by excluding subway as a type, but then you end up unable to handle more complicated examples like:
This is a horseshoe river which interacts with the same line twice, once via a tunnel and then via a bridge.
Thankfully, Overture lets parts of the same segment carry rail_flags, which let us exclude water crossings where the segment has is_tunnel or is_covered in that part:
Most of this will never be perfect and a lot of this ends up being a trade-off between avoiding false positives and getting a dataset good enough to unblock the next cycle of development. As it stands this was enough to allow us to get data for the UK and Germany.
UK:
Germany:
But, once we have these points of interest, what do we do with them? Next up: building and evaluating a predictor.
Related development detail if interested: