AspectedRouting/javascript/interpret.ts

31 lines
501 B
TypeScript
Raw Normal View History

2021-07-13 13:26:36 +02:00
const interpret = (definitionFile, tags) => {
}
const example = interpret({
"highway": {
"residential": 1.2
}
},
{
"highway": "residential"
})
2021-07-13 13:36:01 +02:00
console.log("Expect", 1.2, "got", example)
const example1 = interpret({
"$multiply": {
"highway": {
"residential": 1.2
},
"surface": {"asphalt": 1.1}
}
},
{
"highway": "residential",
"surface": "asphalt"
})