I'm new to working with OSM data and there seem to be a few different ways to download it. I'm looking to download road vector data (ideally globally but a small region works as well) filtered by width such that only large roads wider than a certain threshold (like highways) are included. Which is the best option for this -- the Overpass API? Others? Thoughts on how to write the query for this are greatly appreciated. asked 29 Oct '21, 20:22 krt333 |
Overpass is obviously easier when working with small areas, or if you don't want to download and set up a local data file. The Overpass query would include combinations of One official blog post: https://dev.overpass-api.de/blog/numbers.html answered 30 Oct '21, 08:04 Kovoschiz |
I don't know how to help you with your query but as a long-time OSM mapper, I can say that most highways in OSM don't have a defined width associated with them. That is, most of the mappers I know don't use the tag width=*. It's a level of detail that isn't critical for the type of mapping many of us do.
So, while you will certainly get some help in developing a working query here, I doubt whether it will be very useful.
"such that only large roads wider than a certain threshold (like highways) are included" makes me wonder if you are not in fact looking for a highway classification. At least in more developed regions there is a quite differentiated system of highway classification mapped in OSM. Probably your best bet is to filter by the
highway
tag then.