Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overpass Turbo API - max retries #4

Open
vwvbrand opened this issue Oct 15, 2024 · 0 comments
Open

Overpass Turbo API - max retries #4

vwvbrand opened this issue Oct 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request invalid This doesn't seem right

Comments

@vwvbrand
Copy link
Contributor

Overpass Turbo API results in SSLEOFError (aborted connection because max retries exceeded with url).
Experienced with the query to fetch roads for the bounding box of Northern England: 52.98893670759685,-2.7876213063263044,54.755166952963556,-1.1889035388429525

The full query is the following:

query_roads = f"""
[out:json]
[maxsize:1073741824]
[timeout:9000]
[date:"{year}-12-31T23:59:59Z"]
[bbox:{bbox}];
way["highway"~"(motorway|trunk|primary|secondary|tertiary)"];
/*also includes 'motorway_link',  'trunk_link' etc. because they also restrict habitat connectivity
*/
/*old version to export only columns needed, but it overwhelms the code:
foreach -> .setWay {{
  .setWay; > -> .setNodes;
  make way geometry = setNodes.set(" " + lat() + ", " + lon()),
  highway = u(t["highway"]),
  name = u(t["name"]),
  width = u(t["width"]),
  level = u(t["level"]),
  bridge = u(t["bridge"]);
  out;
}};
*/
(._;>;);
out;
"""

The explicit log is attached:
roads_query_log.txt

Possible solution is to change query with non-critical parameters (add extra symbols to comment) and automate changing query each time this exception faced.

@vwvbrand vwvbrand added bug Something isn't working enhancement New feature or request invalid This doesn't seem right labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants