Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 97cf99c

Browse files
authored
Merge pull request #54 from QwantResearch/exclude-from-searchable
Exclude amenity=car_sharing and leisure=fitness_station from searchable items
2 parents daaea04 + e454224 commit 97cf99c

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

src/pois.rs

+24-16
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,37 @@ use once_cell::sync::Lazy;
1818

1919
static NON_SEARCHABLE_ITEMS: Lazy<BTreeSet<(String, String)>> = Lazy::new(|| {
2020
[
21-
/* List of (mapping_key, subclass) */
21+
/*
22+
List of (mapping_key, subclass)
23+
*/
24+
// POIs likely to produce lots of duplicates
2225
("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"),
3026
("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"),
3235
("amenity", "toilets"),
36+
("amenity", "waste_basket"),
37+
("leisure", "fitness_station"),
3338
("leisure", "playground"),
34-
("amenity", "telephone"),
35-
("amenity", "taxi"),
3639
("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
4243
("railway", "subway_entrance"),
4344
("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"),
4452
]
4553
.iter()
4654
.map(|(a, b)| ((*a).to_string(), (*b).to_string()))

0 commit comments

Comments
 (0)