Skip to content

Commit b7f1048

Browse files
eikesnvkelso
andauthored
Adds bus stops to POIs (#164)
* Adds bus_stop to pois * Set minZoom for "highway: bus_stop" * bus_stop to 18 (not 16) And fold logic into main if/else block --------- Co-authored-by: Nathaniel V. KELSO <[email protected]>
1 parent 9008fdc commit b7f1048

File tree

1 file changed

+5
-0
lines changed
  • tiles/src/main/java/com/protomaps/basemap/layers

1 file changed

+5
-0
lines changed

tiles/src/main/java/com/protomaps/basemap/layers/Pois.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
5151
sf.hasTag("leisure") ||
5252
sf.hasTag("natural", "beach") ||
5353
sf.hasTag("railway", "station") ||
54+
sf.hasTag("highway", "bus_stop") ||
5455
sf.hasTag("shop") ||
5556
sf.hasTag("tourism") &&
5657
(!sf.hasTag("historic", "district")))) {
@@ -113,6 +114,8 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
113114
} else if (sf.hasTag("tourism", "attraction", "camp_site", "hotel")) {
114115
kind = sf.getString("tourism");
115116
minZoom = 15;
117+
} else if (sf.hasTag("highway", "bus_stop")) {
118+
minZoom = 18;
116119
} else {
117120
// Avoid problem of too many "other" kinds
118121
// All these will default to min_zoom of 15
@@ -134,6 +137,8 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
134137
kind = sf.getString("natural");
135138
} else if (sf.hasTag("railway")) {
136139
kind = sf.getString("railway");
140+
} else if (sf.hasTag("highway")) {
141+
kind = sf.getString("highway");
137142
} else if (sf.hasTag("shop")) {
138143
kind = sf.getString("shop");
139144
} else if (sf.hasTag("tourism")) {

0 commit comments

Comments
 (0)