Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use station tag value in pmap:kind_detail and include tram stops in POIs #166

Closed
wants to merge 8 commits into from
3 changes: 3 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("railway", "tram_stop") ||
sf.hasTag("shop") ||
sf.hasTag("tourism") &&
(!sf.hasTag("historic", "district")))) {
Expand Down Expand Up @@ -204,6 +205,8 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
kindDetail = sf.getString("religion");
} else if (sf.hasTag("sport")) {
kindDetail = sf.getString("sport");
} else if (sf.hasTag("station")) {
kindDetail = sf.getString("station");
}

// try first for polygon -> point representations
Expand Down