summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-03-28 14:44:01 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-03-28 14:44:01 +0000
commit5c8566c7d10971dfb6d4d3080e33c23857cafcfe (patch)
tree656ef4ab360bdda1c11d1dc3a2a68d03919431b5 /navit
parentab14624882c263f9d78273a1aa8e757d2cc5f2b6 (diff)
downloadnavit-svn-5c8566c7d10971dfb6d4d3080e33c23857cafcfe.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')
-rw-r--r--navit/item.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/navit/item.h b/navit/item.h
index 1a65a658..341d4406 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)