Is it possible to declare the variable area and store a bounding box in it? The following works fine: id-query {{nominatimArea:Netherlands}} into="area" and then i can ask for it with: area-query from="area" However bbox-query s="51.92" w="4.79" n="52.31" e="5.64" into="area" and then ask for it with: area-query from="area" gives an empty result. Is it possible store a bounding box in a variable? And if so, what's the correct code for it? asked 28 Jan '16, 00:30 Steijn |
It is possible in Overpass Turbo, using the custom shortcut syntax: http://wiki.openstreetmap.org/wiki/Overpass_turbo/Extended_Overpass_Queries#Custom_Shortcuts But this feature is coming from Overpass Turbo and won't work on queries sent directly to Overpass API, only on queries made using the Turbo interface. Depending on what you are retrieving, it may also work to set the bounding box on the osm-script element. Something like (untested): Another solution would be to use a script written in another language (like Python or Ruby or ...) to generate your Overpass script from a template. answered 28 Jan '16, 13:21 maxerickson Hi, thank you for your response. :) I decided to keep it simple and repeat the bounding box in each query. But thanks anyway as I now realise there is a difference between Overpass Turbo and Overpass API.
(02 Feb '16, 23:55)
Steijn
|