feat: update transportation class blacklist
Some checks failed
TrafficCue CI / check (push) Failing after 1m34s
Some checks failed
TrafficCue CI / check (push) Failing after 1m34s
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user