diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-03-28 14:44:01 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-03-28 14:44:01 +0000 |
commit | 3880639a5054fc74de835ab31fcc1732f24ca6aa (patch) | |
tree | 656ef4ab360bdda1c11d1dc3a2a68d03919431b5 /navit/item.h | |
parent | 795a59c5b464d932375210b762d5434842497f66 (diff) | |
download | navit-3880639a5054fc74de835ab31fcc1732f24ca6aa.tar.gz |
Fix:core:Consider more street types for address search. Fixes http://forum.navit-project.org/viewtopic.php?t=549
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@6032 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/item.h')
-rw-r--r-- | navit/item.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/navit/item.h b/navit/item.h index 1a65a6587..341d4406d 100644 --- a/navit/item.h +++ b/navit/item.h @@ -53,10 +53,14 @@ extern int default_flags[]; #define item_is_poly_place(item) ((item).type >= type_poly_place1 && (item).type <= type_poly_place6) #define item_is_point(item) ((item).type < type_line) #define item_is_custom_poi(item) ((item).type >= type_poi_customg && (item).type < type_line) -#define item_is_street(item) (((item).type >= type_street_0 && (item).type < type_street_1_land) \ - || (item).type == type_street_pedestrian \ +#define item_is_street(item) (((item).type >= type_street_nopass && (item).type <= type_roundabout) \ + || (item).type == type_street_service \ + || ((item).type >= type_street_pedestrian && (item).type <= type_track_grass) \ || (item).type == type_living_street \ - || (item).type == type_footway) + || (item).type == type_street_construction \ + || (item).type == type_path \ + || (item).type == type_street_parking_lane \ + || (item).type == type_footway ) #define item_is_equal_id(a,b) ((a).id_hi == (b).id_hi && (a).id_lo == (b).id_lo) #define item_is_equal(a,b) (item_is_equal_id(a,b) && (a).map == (b).map) |