Fix associations

This commit is contained in:
pietervdvn 2021-01-04 16:02:54 +01:00
parent c2a2306d18
commit cc48d34804
3 changed files with 40 additions and 41 deletions

View file

@ -6,10 +6,9 @@ import {Utils} from "../Utils";
import CountryCoder from "latlon2country" import CountryCoder from "latlon2country"
class SimpleMetaTagger { class SimpleMetaTagger {
private _f: (feature: any, index: number) => void;
public readonly keys: string[]; public readonly keys: string[];
public readonly doc: string; public readonly doc: string;
private _f: (feature: any, index: number) => void;
constructor(keys: string[], doc: string, f: ((feature: any, index: number) => void)) { constructor(keys: string[], doc: string, f: ((feature: any, index: number) => void)) {
this.keys = keys; this.keys = keys;
@ -121,7 +120,7 @@ export default class MetaTagging {
} }
updateTags(); updateTags();
} catch (e) { } catch (e) {
console.error(e); console.error("Error while parsing opening hours of ", tags.id, e);
tags["_isOpen"] = "parse_error"; tags["_isOpen"] = "parse_error";
} }

View file

@ -25,7 +25,7 @@ export default class State {
// The singleton of the global state // The singleton of the global state
public static state: State; public static state: State;
public static vNumber = "0.2.6b"; public static vNumber = "0.2.6c";
// The user journey states thresholds when a new feature gets unlocked // The user journey states thresholds when a new feature gets unlocked
public static userJourney = { public static userJourney = {

View file

@ -11,9 +11,9 @@
"or": [ "or": [
"theme~cycling|bicycle", "theme~cycling|bicycle",
"sport=cycling", "sport=cycling",
"association=cycling|bicycle", "association~cycling|bicycle",
"ngo=cycling|bicycle", "ngo~cycling|bicycle",
"club=bicycle|cycling" "club~bicycle|cycling"
] ]
}, },
"title": { "title": {