Skip to content

Commit 4e39877

Browse files
committed
Substitute post for get. Received 414 error when requesting large poly
query. http://www.overpass-api.de/command_line.html http://en.wikipedia.org/wiki/POST_(HTTP)
1 parent 0564050 commit 4e39877

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

overpass/api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ def _GetFromOverpass(self, query):
8383
payload = {"data": query}
8484

8585
try:
86-
r = requests.get(
86+
r = requests.post(
8787
self.endpoint,
88-
params=payload,
88+
data=payload,
8989
timeout=self.timeout
9090
)
91+
9192
except requests.exceptions.Timeout:
9293
raise TimeoutError(self._timeout)
9394

0 commit comments

Comments
 (0)