search returning empty objects
See original GitHub issueSomething have changed in either the code or the API since April/2016. A script that was working fantastically in April (and maybe in May) are only returning empty strings. Search queries [out:json];relation["type"="boundary"]["admin_level"="2"]["boundary"="administrative"](-34.0,-51.0,5.0,-28.0);
and [out:json];relation["type"="boundary"]["admin_level"="2"]["boundary"="administrative"](-34.0,-51.0,5.0,-28.0);out body;
and [out:json];relation["type"="boundary"]["admin_level"="2"]["boundary"="administrative"](-34.0,-51.0,5.0,-28.0);(._;>;);out body;
all give empty response object back from the api. Running the last search in overpass-turbo returns correctly, the boundary relation for Brazil with all members. When the script was working, the first query sentence gave only the relation object of Brazil, which is what I need for further processing.
No changes have been done to the script since last successful run (except swapping between different alternatives of the searchString variable), though the PIP and the python version have been updated.
Below is a snippet from my log of the execution of the script:
2016/07/08 16:14:24: gpxupload INFO - Opened success.gpx/Upload/156VIRB0245.gpx 2016/07/08 16:14:24: gpxupload DEBUG - GPX File contains 1038 trackpoints with 1.423 km. 2016/07/08 16:14:24: gpxupload DEBUG - [out:json];relation[“type”=“boundary”][“admin_level”=“2”]“boundary”="administrative"😭._;>;);out body; 2016/07/08 16:14:25: requests.packages.urllib3.connectionpool INFO - Starting new HTTP connection (1): overpass-api.de 2016/07/08 16:14:39: requests.packages.urllib3.connectionpool DEBUG - “POST /api/interpreter HTTP/1.1” 400 461 2016/07/08 16:14:39: gpxupload ERROR - No search result returned
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
Hey Im getting emtpy returns as well when I want json BUT When i do XML format I get expected results but in xml 😦
i.e. api = overpass.API() api.Get(“relation(11111111)”) # returns {“features”: [], “type”: “FeatureCollection”}
while api.Get(“relation(11111111)”, “xml”) # returns expected data. works with “json” as well
hope this helps
Closing for lack of activity. Feel free to re-open if you’re still seeing this issue.