Finding the suspected origin of an explosion, by using the time from seeing the explosion on video to the time the sound of the explosion reaches the microphone:
Bellingcat's Bellingcat OpenStreetMap search is a tool that wraps Overpass Turbo in an easier-to-use interface for the specific task of geolocation based on image and videos: https://osm-search.bellingcat.com
This is awesome, but a lot of the queries I've tried to make seem to fail on OSM's data itself, which is sad. For instance, "coffee shops within a certain distance of fast EV chargers" would be really valuable, but the underlying data just doesn't have that EV data. So it's cool for a lot of stuff, but mostly explicitly streets; the other kinds of nodes all exist but aren't as well fleshed out as they could be (totally understandable).
Yeah, I've had that experience too. Or at least it gets close enough that I can make it work.
The Overpass QL language is the most...bizarrely constructed language I've ever had to use. It's a bit hard to believe that the person who designed the language thought this was a perfectly reasonable statement:
I read up on the syntax a few years ago and, by learning only a few of the symbols, it actually starts to make a lot of sense and seemed like a nice shorthand.
I then promptly forgot everything and find the syntax very annoying again nowadays... seriously, it's weird remembering having knowledge but not having the knowledge itself anymore
Overpass syntax is one of those things that I just read the documentation for every single time I have to do it. Last time I used it things like ChatGPT didn't exist yet though, so I'll probably use it from now on if I ever have to write an overpass query
I really don't understand the point of shortcuts where this is the result.
I'm a really big fan of clear and legible code. I'm not at In-n-Out with a secret menu. I'm trying to make changes/updates to code someone else wrote. I don't care how clever they felt they were by using esoteric shortcuts that might make things short and fit on one line. I want to be able to read the code and follow what it does in the least amount of time. Now, if the compiler makes different/better decisions when reading something like that vs much more legible code, we can maybe have a discussion.
Those aren't shortcuts though, it's composition of 3 basic statements. The `(...);` says to gather the results of the statements contained within it into one result. The `._;` is a reference to the previous result. And then the `>;` is an operator that says to go fetch the children of the previous statement. So you are taking the last result and gathering it up together with any children, which is necessary in the OpenStreetMap data model where lines and areas are built up out of other objects.
Depending on the use case, the shortcut is often to add `geom` to the print statement, so instead a line with the above and a line with `out;` you just write `out geom;`.
Gotta agree with you, the QL is strange. I tried using the wizard but it kept spinning. I tried asking Bard and ChatGPT but they provided invalid syntax.
This is sad because overpass is extremely powerful tool.
I’ll give the tutorials other commenters linked a try.
Lucky you! I tried learning with examples generated by ChatGPT and none of them worked at all. I then learned the basics of the API by reading this excellent tutorial: https://osm-queries.ldodds.com/tutorial/, and realised that, in hindsight, ChatGPT's answers weren't even close to being correct.
Very interesting. Quite surprising too : it can find non trivial searches like "bars with darts" ("bars à fléchette" in French), but not easy ones ("fromagerie" or "dermato").
More complex queries did not work : "cafes close to the river" returned nothing, neither did "touristic site close to a pedestrian area" or "touristic streets".
Related: If any OSM GIS engineering enthusiasts, we have a small OSS repo we are looking for an assist on that should be fun for the right person: Spin up a big box, quickly render planet-scale tiles at a decent level (maptiler), and restart as a more reasonably-sized zoom level for serving. We did the core infra/devops, and are looking for someone to help tweak the perf knobs etc. See my profile on how to reach.
I built osm_split to extract OSM features into named GPKG files. It makes it easy to pick features by name and drop them into QGIS. https://github.com/marklit/osm_split
Yeah, you can. The file will be huge though and QGIS won't be performant. Somewhere like Tokyo will be ~400 MB in OSM's PBF format but will contain ~1,300 different types of features.
Seeing these listed in alphabetical order in a file explorer makes it easier to track down only what you need to build your map.
It could be you only end up using 150 MB of GPKG files and QGIS, even on an old laptop, would be performant.
There is a QGIS plugin for this API as well which is excellent.
Note that in openstreetmap.com you can zoom in and query items (cursor with question mark icon) to get the feature information that you then use in Overpass. Very useful!
Regarding data mining tools for OpenStreetMap, there is also a tool with which one can use SPARQL syntax. This means that one could conflate data with wikidata or other data sources easily, too:
Published a ShowHN about Atlas.co yesterday, but I also just want to mention that we have a Overpass Turbo OSM integration that enables you to query data directly in a map and then download it as geojson, kml or shp (obv you can also style it and use it in analysis). Might be useful for some
Slightly off topic and maybe better as an Ask HN, but here goes.
There are apps for updating OSM that will let me put in the information for the houses in my neighborhood, for example, but that gets tedious. Are there any scripts (python, shell, ?) that would make that easier?
> Imports and automated edits should only be carried out by those with experience and understanding of the way the OpenStreetMap community creates maps, and only with careful planning and consultation with the local community.
See Import/Guidelines and Automated Edits code of conduct for more information. Imports/automated edits which do not follow these guidelines might be reverted!
Actually saved me in an internship where i needed a complete dataset of adresses. This post remindes me that i had a gdoc where i had i lot of ideas for side projects, thanks !
Find all buildings that straddle the boundary between Glendale and Burbank in California:
https://twitter.com/lemonodor/status/1636849040548675584
Finding the suspected origin of an explosion, by using the time from seeing the explosion on video to the time the sound of the explosion reaches the microphone:
https://twitter.com/lemonodor/status/1636859983223734273
Someone on twitter asked "Is anyone aware of any 4 way stop intersections in Australia?"
https://twitter.com/lemonodor/status/1516239321094713346
Finding examples of airport runways that cross highways:
https://twitter.com/lemonodor/status/1709598048459132976
Finding banks that might be at risk of robbery:
https://twitter.com/lemonodor/status/1716153200750051332