Skip to content

Commit

Permalink
change overpass request to POST from GET (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeEfstathiadis authored Feb 3, 2022
1 parent ce8becf commit d8bee7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forest/jasmine/traj2stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def get_nearby_locations(traj: np.ndarray) -> Tuple[dict, dict, dict]:

query += "\n);\nout geom qt;"

response = requests.get(OSM_OVERPASS_URL,
params={"data": query}, timeout=60)
response = requests.post(OSM_OVERPASS_URL,
data={"data": query}, timeout=60)
response.raise_for_status()

res = response.json()
Expand Down

0 comments on commit d8bee7b

Please sign in to comment.