this post was submitted on 24 Jan 2024
425 points (96.7% liked)

Programmer Humor

31793 readers
85 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Saw this on HackerNews via @[email protected]

My Mastodon post about it & @[email protected]'s reply linking to OpenStreetMap's documentation with an example to find banks far away from police stations

you are viewing a single comment's thread
view the rest of the comments
[–] litchralee 31 points 7 months ago* (last edited 7 months ago)

As an aside, I will say that the examples from the OSM Overpass API are pretty nifty for other applications. For example, I once wanted to find the longest stretch of road within city limits that does not have a stop sign or traffic light, in order to fairly assess ebike range by running back and forth until out-of-battery. I knew at the time that OSM had the data, but I didn't know it could be queried in such a way. Would have saved me some manual searching, as well as broadening to include rural roads just outside the city.