Hello. I am using node-osmium for parsing a .pbf file. It works pretty well but I am missing some information: class and type of the osm-object e.g. class=amenity, type=parking These are available in objects I get e.g with overpass or nominatim. My question ist, if this information is simply not available in the returned object, or if I did not find the correct method to receive it. asked 25 Apr '17, 15:07 autumnus |
OpenStreetMap objects don't have a "class" and "type". Rather, they can have any number of tags and values. Nominatim simplifies that into a "class" and "type" - for example, something tagged answered 25 Apr '17, 22:11 Frederik Ramm ♦ scai ♦ I new about the functions "tags()" and "get_value_by_key()" and I recognized that Nominatim sometimes has two lines in its database with the same osm_id and different class and type. The fact, that the class and type are somehow "calculated" is new to me. That helps a lot and saves me time, as I don't have to search any more :-) Thanks!
(26 Apr '17, 12:54)
autumnus
|