feat: update transportation class blacklist
Some checks failed
TrafficCue CI / check (push) Failing after 1m34s

This commit is contained in:
2025-10-22 09:53:25 +02:00
parent aa0bcdd091
commit 001011cd23

View File

@ -112,13 +112,13 @@ export function watchLocation() {
location.heading = pos.coords.heading;
location.lastUpdate = new Date();
const blacklist = ["footway", "platform"];
const blacklist = ["path", "track", "raceway", "busway", "bus_guideway", "ferry"];
getMeta(
{ lat: location.lat, lon: location.lng },
"transportation",
(f) => {
if(f.properties) {
return !blacklist.includes(f.properties["subclass"]);
return !blacklist.includes(f.properties["class"]);
}
return true;
}
@ -130,7 +130,7 @@ export function watchLocation() {
"transportation",
(f) => {
if(f.properties) {
return !blacklist.includes(f.properties["subclass"]);
return !blacklist.includes(f.properties["class"]);
}
return true;
}