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 33fddc9 + 19dceaa commit 547d2bfCopy full SHA for 547d2bf
overpass/api.py
@@ -81,10 +81,13 @@ def get(self,
81
for row in reader:
82
result.append(row)
83
return result
84
- elif content_type == "text/xml" or content_type == "application/xml":
+ elif content_type in ("text/xml", "application/xml", "application/osm3s+xml"):
85
return r.text
86
+ elif content_type == "application/json":
87
+ response = json.loads(r.text)
88
- response = json.loads(r.text)
89
+ if not build:
90
+ return response
91
92
# Check for valid answer from Overpass.
93
# A valid answer contains an 'elements' key at the root level.
0 commit comments