Skip to content

Commit

Permalink
Adds bus stops to POIs (#164)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
eikes and nvkelso authored Oct 31, 2023
1 parent 9008fdc commit b7f1048
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tiles/src/main/java/com/protomaps/basemap/layers/Pois.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
sf.hasTag("leisure") ||
sf.hasTag("natural", "beach") ||
sf.hasTag("railway", "station") ||
sf.hasTag("highway", "bus_stop") ||
sf.hasTag("shop") ||
sf.hasTag("tourism") &&
(!sf.hasTag("historic", "district")))) {
Expand Down Expand Up @@ -113,6 +114,8 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
} else if (sf.hasTag("tourism", "attraction", "camp_site", "hotel")) {
kind = sf.getString("tourism");
minZoom = 15;
} else if (sf.hasTag("highway", "bus_stop")) {
minZoom = 18;
} else {
// Avoid problem of too many "other" kinds
// All these will default to min_zoom of 15
Expand All @@ -134,6 +137,8 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
kind = sf.getString("natural");
} else if (sf.hasTag("railway")) {
kind = sf.getString("railway");
} else if (sf.hasTag("highway")) {
kind = sf.getString("highway");
} else if (sf.hasTag("shop")) {
kind = sf.getString("shop");
} else if (sf.hasTag("tourism")) {
Expand Down

0 comments on commit b7f1048

Please sign in to comment.