mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 03:02:20 +00:00
skip Nominatim lookups when the server has none configured
Add GET /api/geocode/status ({configured}), like /api/overpass/status. The outline client and the last-resort place search ask it once per page and send no lookup a server without a Nominatim endpoint would refuse, so a default install no longer logs a 503 on its first named landmark or grounds ask. An older server or a failed probe leaves the capability unknown and lookups proceed as before.
This commit is contained in:
1 parent
24228b145e
commit
f32ab5446b
10 files changed
+157
-6
No files matched your search
@@ -27,3 +27,6 @@
|
||||
First sources whose licence is only listed as CC BY or CC0 "equivalent",
|
||||
including the Ottawa, Saskatoon, Gatineau and Madrid records
|
||||
(Manjunath, #842).
|
||||
- Skip Nominatim place and outline lookups when the server reports that no
|
||||
Nominatim endpoint is configured, so a default install sends no request it
|
||||
would refuse (Manjunath, #842).
|
||||
Reference in new issue
Block a user