@@ -18,29 +18,37 @@ use once_cell::sync::Lazy;
18
18
19
19
static NON_SEARCHABLE_ITEMS : Lazy < BTreeSet < ( String , String ) > > = Lazy :: new ( || {
20
20
[
21
- /* List of (mapping_key, subclass) */
21
+ /*
22
+ List of (mapping_key, subclass)
23
+ */
24
+ // POIs likely to produce lots of duplicates
22
25
( "highway" , "bus_stop" ) ,
23
- ( "barrier" , "gate" ) ,
24
- ( "amenity" , "waste_basket" ) ,
25
- ( "amenity" , "post_box" ) ,
26
- ( "tourism" , "information" ) ,
27
- ( "barrier" , "lift_gate" ) ,
28
- ( "barrier" , "bollard" ) ,
29
- ( "barrier" , "cycle_barrier" ) ,
30
26
( "amenity" , "bicycle_rental" ) ,
31
- ( "tourism" , "artwork" ) ,
27
+ ( "amenity" , "car_sharing" ) ,
28
+ ( "amenity" , "ferry_terminal" ) ,
29
+ ( "amenity" , "post_office" ) ,
30
+ // Street furniture and minor items
31
+ ( "amenity" , "post_box" ) ,
32
+ ( "amenity" , "shelter" ) ,
33
+ ( "amenity" , "taxi" ) ,
34
+ ( "amenity" , "telephone" ) ,
32
35
( "amenity" , "toilets" ) ,
36
+ ( "amenity" , "waste_basket" ) ,
37
+ ( "leisure" , "fitness_station" ) ,
33
38
( "leisure" , "playground" ) ,
34
- ( "amenity" , "telephone" ) ,
35
- ( "amenity" , "taxi" ) ,
36
39
( "leisure" , "pitch" ) ,
37
- ( "amenity" , "shelter" ) ,
38
- ( "barrier" , "sally_port" ) ,
39
- ( "barrier" , "stile" ) ,
40
- ( "amenity" , "ferry_terminal" ) ,
41
- ( "amenity" , "post_office" ) ,
40
+ ( "tourism" , "artwork" ) ,
41
+ ( "tourism" , "information" ) ,
42
+ // Railway sub-items
42
43
( "railway" , "subway_entrance" ) ,
43
44
( "railway" , "train_station_entrance" ) ,
45
+ // Barriers
46
+ ( "barrier" , "bollard" ) ,
47
+ ( "barrier" , "cycle_barrier" ) ,
48
+ ( "barrier" , "gate" ) ,
49
+ ( "barrier" , "lift_gate" ) ,
50
+ ( "barrier" , "sally_port" ) ,
51
+ ( "barrier" , "stile" ) ,
44
52
]
45
53
. iter ( )
46
54
. map ( |( a, b) | ( ( * a) . to_string ( ) , ( * b) . to_string ( ) ) )
0 commit comments