Geodesic Diatance of 1000 Israel's Largest Settlements
Browse filesCurated by:
```python
lOverpassEndpoints = [
"https://overpass-api.de/api/interpreter",
"https://overpass.kumi.systems/api/interpreter",
"https://overpass.private.coffee/api/interpreter",
]
overpassQuery = """
[out:json][timeout:120];
(
node["place"~"^(city|town|village)$"](29.4,34.2,33.4,35.9);
way["place"~"^(city|town|village)$"](29.4,34.2,33.4,35.9);
);
out center;
"""
dHeaders = {
"User-Agent": "FixelCourses-Overpass-Query/1.0 (educational use)",
"Accept": "application/json, text/plain;q=0.9, */*;q=0.8",
}
dData = None
lastError = None
for overpassUrl in lOverpassEndpoints:
try:
# Send raw Overpass QL as the request body.
postResponse = requests.post(overpassUrl, data=overpassQuery, headers=dHeaders, timeout=180)
postResponse.raise_for_status()
dData = postResponse.json()
print(f"Overpass query succeeded via: {overpassUrl}")
break
except requests.RequestException as ex:
statusCode = getattr(ex.response, "status_code", None)
responseText = ""
if getattr(ex, "response", None) is not None and ex.response is not None:
responseText = ex.response.text[:400]
print(f"Overpass request failed via {overpassUrl} (status={statusCode}): {responseText}")
lastError = ex
```
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c334778f742d4d4ae5f5d1aa3451da5118d1f0f4b6424b5636783f02ad942283
|
| 3 |
+
size 9847190
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77d04a8714a9366d3df7288816080b58c190d2c18fee7278002ed2972dd2f279
|
| 3 |
+
size 34598
|