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