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.
2 parents 893c588 + a575498 commit 5989b01Copy full SHA for 5989b01
Overpass/Overpass.py
@@ -59,11 +59,12 @@ def _ConstructError(self, msg):
59
}
60
61
def _ConstructQLQuery(self, userquery):
62
- if self.debug:
63
- print "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
64
if not userquery.endswith(";"):
65
userquery += ";"
66
- return "[out:json];" + userquery + "out body;"
+ fullquery = "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
+ if self.debug:
+ print fullquery
67
+ return "[out:{responseformat}];".format(responseformat=self.responseformat) + userquery + "out body;"
68
69
def _GetFromOverpass(self, query):
70
"""This sends the API request to the Overpass instance and
0 commit comments