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;
"""
Possible solution is to change query with non-critical parameters (add extra symbols to comment) and automate changing query each time this exception faced.
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:
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.