...
 
Commits (2)
...@@ -260,9 +260,9 @@ function makeOSM (argv) { ...@@ -260,9 +260,9 @@ function makeOSM (argv) {
vb = viewbox(lat, lon, d) vb = viewbox(lat, lon, d)
} }
if (q && lat && lon) { if (q && lat && lon) {
query = `(node["name"~"${q}"](${vb});way["name"~"${q}"](${vb}))` query = `(node["name"~"^${q}"](${vb});way["name"~"^${q}"](${vb}))`
} else if (q) { } else if (q) {
query = `(node["name"~"${q}"];way["name"~"${q}"])` query = `(node["name"~"^${q}"];way["name"~"^${q}"])`
} else if (lat && lon) { } else if (lat && lon) {
query = `(node["name"](${vb});way["name"](${vb}))` query = `(node["name"](${vb});way["name"](${vb}))`
} }
......
...@@ -2733,5 +2733,5 @@ ...@@ -2733,5 +2733,5 @@
} }
} }
}, },
"version": "0.9.0" "version": "0.10.0"
} }
...@@ -31,5 +31,5 @@ ...@@ -31,5 +31,5 @@
"pug": "^2.0.0-rc.4", "pug": "^2.0.0-rc.4",
"yargs": "^10.0.3" "yargs": "^10.0.3"
}, },
"version": "0.9.0" "version": "0.10.0"
} }