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.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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user