Ticket #704: maptool-housenumber.diff

File maptool-housenumber.diff, 1.5 KB (added by tryagain, 9 years ago)

Please test if this work. Also it should add housenumber search to places where street search is working and addr:housenumber attributes present in OSM.

  • navit/maptool/osm.c

     
    495495        "n      traffic_sign=city_limit traffic_sign_city_limit\n"
    496496        "n      highway=speed_camera    tec_common\n"
    497497        "w      *=*                     street_unkn\n"
     498        "w      addr:housenumber=*      house_number\n"
     499        "w      addr:street=*           street_name\n"
    498500        "w      addr:interpolation=even house_number_interpolation_even\n"
    499501        "w      addr:interpolation=odd  house_number_interpolation_odd\n"
    500502        "w      addr:interpolation=all  house_number_interpolation_all\n"
     
    15311533        }
    15321534        for (i = 0 ; i < count ; i++) {
    15331535                add_flags=0;
    1534                 if (types[i] == type_none)
     1536                if (types[i] == type_none || types[i] == type_street_name)
    15351537                        continue;
    15361538                if (ignore_unkown && (types[i] == type_street_unkn || types[i] == type_point_unkn))
    15371539                        continue;
     
    15451547                }
    15461548                item_bin_add_attr_string(item_bin, def_flags ? attr_street_name : attr_label, attr_strings[attr_string_label]);
    15471549                item_bin_add_attr_string(item_bin, attr_street_name_systematic, attr_strings[attr_string_street_name_systematic]);
     1550                item_bin_add_attr_string(item_bin, attr_house_number, attr_strings[attr_string_house_number]);
     1551                item_bin_add_attr_string(item_bin, attr_street_name, attr_strings[attr_string_street_name]);
    15481552                item_bin_add_attr_longlong(item_bin, attr_osm_wayid, osmid_attr_value);
    15491553                if (debug_attr_buffer[0])
    15501554                        item_bin_add_attr_string(item_bin, attr_debug, debug_attr_buffer);