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.

Home Page:https://pelias.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

filter by type

stefanocudini opened this issue · comments

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

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?