Skip to content

Commit

Permalink
Filter old tracks (#35)
Browse files Browse the repository at this point in the history
* Update Transit.java

filter for razed, demolished and removed railways

* Update Roads.java

filter for abandoned, razed, demolished and removed
  • Loading branch information
HeikoGr authored Apr 29, 2023
1 parent 30ba3af commit e4219e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public String name() {
@Override
public void processFeature(SourceFeature sourceFeature, FeatureCollector features) {
if (sourceFeature.canBeLine() && sourceFeature.hasTag("highway") &&
!(sourceFeature.hasTag("highway", "proposed", "construction"))) {
!(sourceFeature.hasTag("highway", "proposed", "abandoned", "razed", "demolished", "removed", "construction"))) {
String highway = sourceFeature.getString("highway");
var feat = features.line("roads")
.setId(FeatureId.create(sourceFeature))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
sf.hasTag("aerialway", "cable_car") ||
sf.hasTag("route", "ferry") ||
sf.hasTag("aeroway", "runway", "taxiway")) &&
(!sf.hasTag("railway", "abandoned", "construction", "platform", "proposed"))) {
(!sf.hasTag("railway", "abandoned", "razed", "demolished", "removed", "construction", "platform", "proposed"))) {

int minzoom = 11;

Expand Down

0 comments on commit e4219e0

Please sign in to comment.