Closed pe-perry closed 6 years ago
If you amend the query call to specify the response format as JSON, you should be fine.
>>> resp = api.get('rel(3676782);map_to_area->.lantauisland;way(area.lantauisland);', responseformat="json")
Let me know if that works!
@mvexel Thanks! It works after adding responseformat="json"
. So interesting.
The following query doesn't work unless
(._;>;);
is added, but it is not necessary (if I just want way data).Error message:
The problem also occurs for relations.
Note that http://overpass-api.de/api/interpreter?data=[out:json];rel(3676782);map_to_area->.lantauisland;rel(area.lantauisland);out; does return a json of way data.