6 ms·
I've been asking ChatGPT to write Overpass Turbo queries and it does a good job.
by shpx 3y ago
I've been asking ChatGPT to write Overpass Turbo queries and it does a good job.
- maelito 3y agoYes. It was way harder with the other LLMs. Except Claude maybe.
- zarazas 3y agoThere is also this: https://overpassnl.schumann.pub/ https://overpassnl.schumann.pub/
- Raphaellll 3y agowe systematically tested this: https://arxiv.org/pdf/2308.16060.pdf https://arxiv.org/pdf/2308.16060.pdf
- maelito 3y agoWhere can we use it ? I couldn't find a link. It is closed-source ? OK, I had a hard time understanding that the link given above is the demo of this paper. https://overpassnl.schumann.pub https://overpassnl.schumann.pub. 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".
- Raphaellll 3y agoYes, it's far from perfect. We currently work on augmenting the prompt with e.g. relevant key-value pairs extracted from https://wiki.openstreetmap.org/wiki/Map_features https://wiki.openstreetmap.org/wiki/Map_features
- e-v 3y agoLucky 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/ https://osm-queries.ldodds.com/tutorial/, and realised that, in hindsight, ChatGPT's answers weren't even close to being correct.
- stevage 3y agoYeah, 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: (._; >;);
- Alifatisk 3y agoGotta 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.
- Aachen 3y agoI 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
- flexagoon 3y agoOverpass 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
- stevage 3y agoYeah me too. No way is my brain going to remember any of that between times that I use it.
- vloewe 3y agoI scraped the these websites https://wiki.openstreetmap.org/wiki/Map_features https://wiki.openstreetmap.org/wiki/Map_features and gave it to OpenAI's Assistant maker -> This made great results in making valid queries Could even make prompts like "Can you find the buildings closer than 500m to a café?"
- webel0 3y agoIt does. The problem is that I have a hard time determining if the output is, indeed, what I was trying to query in the first place!