4 ms·
Is there a way to query OSM tags directly to build maps? For example, I do a bunch of mountain bike trail mapping, and due to judicious tagging I can pretty eas
by c0nsumer 11y ago
Is there a way to query OSM tags directly to build maps? For example, I do a bunch of mountain bike trail mapping, and due to judicious tagging I can pretty easily select all the assets I'd like in a map with a series of queries.
Can I select ways using a query and have them become something I wish to call out?
- maxerickson 11y agoIt's not all shiny and integrated, but you can export a gpx or kml from Overpass Turbo: http://overpass-turbo.eu/s/fly http://overpass-turbo.eu/s/fly (click 'Run' and then 'Export') (I think there is a fair chance you are aware of it, posting for other readers too) uMap mentioned elsewhere on this page has support for some formats output directly by Overpass API, which powers Overpass Turbo. Overpass Turbo has javascript for converting those formats to KML and GPX. So in uMap, you can generate a layer by pasting in the query, no need to push it through kml or gpx.
- hyperknot 11y agoDo you know overpass turbo [1]? You can use it to make a query over an area and export it to a GeoJSON file, which you can directly import to MapHub. [1] https://overpass-turbo.eu/ https://overpass-turbo.eu/
- c0nsumer 11y agoI didn't until a few minutes ago... Sounds like this'll do what's needed. One thing I'm not clear on is if it updates as the OSM data changes?
- hyperknot 11y agoNo, it won't, unless you manually update it. I am working on making an API for developers, where you can create/update map data programmatically, so you will be able to do it in a cron job for example.
- c0nsumer 11y agoThank you; that'd be cool if it would, but it'd definitely need to be optional... Don't want some rogue edits making your map suddenly look like crap.
- maxerickson 11y agoThere are several instances of Overpass API that keep up to date with the main OSM database (usually seconds or a couple minutes behind). Of course exported data will be from the time of export.