pelias / pbf2json

An OpenStreetMap pbf parser which exports json, allows you to cherry-pick tags and handles denormalizing ways and relations. Available as a standalone binary and comes with a convenient npm wrapper.
https://pelias.io
MIT License
143 stars 36 forks source link

filter by type #111

Open stefanocudini opened 2 years ago

stefanocudini commented 2 years ago

an additional filter in addition to -tags would be useful

called -type with one of the following values; node, way, relation

Use-cases

useful to further subdivide the output obtained by types

for example house numbers and streets

missinglink commented 2 years ago

In the case of house numbers, these can be either nodes or ways. For streets, these can be either ways or relations.

The only reliable way of determining the 'class' of an object is through the tags. Maybe I'm not understanding the use-case, could you provide a more concrete example of how you would use this feature?