We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b055e6 commit a575498Copy full SHA for a575498
Overpass/Overpass.py
@@ -54,11 +54,12 @@ def _ConstructError(self, msg):
54
}
55
56
def _ConstructQLQuery(self, userquery):
57
- if self.debug:
58
- print "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
59
if not userquery.endswith(";"):
60
userquery += ";"
61
- return "[out:json];" + userquery + "out body;"
+ fullquery = "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
+ if self.debug:
+ print fullquery
62
+ return "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
63
64
def _GetFromOverpass(self, query):
65
"""This sends the API request to the Overpass instance and
0 commit comments