public static Map < Short , Object > extractKnownPOITags ( Entity entity ) { Map < Short , Object > tagMap = new HashMap <> ( ) ; OSMTagMapping mapping = OSMTagMapping . getInstance ( ) ; if ( entity . getTags ( ) != null ) { for ( Tag tag : entity . getTags ( ) ) { OSMTag poiTag = mapping . getPoiTag ( tag . getKey ( ) , tag . getValue ( ) ) ; if ( poiTag != null ) { String wildcard = poiTag . getValue ( ) ; tagMap . put ( poiTag . getId ( ) , getObjectFromWildcardAndValue ( wildcard , tag . getValue ( ) ) ) ; } } } return tagMap ; }
Extracts known POI tags and returns their ids .