Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge branch 'main' into upstream/geocode-place-region

quanticsoul4772702037f833df
diff --cc docs/CURRENT-STATE.md
index 602b5c9be,0cb46940c..8ca9c3292
--- a/docs/CURRENT-STATE.md
+++ b/docs/CURRENT-STATE.md
@@@ -5197,14 -5265,17 +5265,22 @@@ HTTP refusals and outages remain retrya
deadline, with Photon requests capped at six seconds each. Caller/application
cancellation stops retries and late cache writes. Replacing a location search
cancels the previous lookup; disposing its controls cancels the active lookup. Photon uses a soft proximity bias, up to five
-candidates, and an unbiased retry for name mismatches. Invalid or wrapped bounds returned by providers
+candidates, and an unbiased retry for name mismatches. A "place, region" query
+only accepts a candidate named exactly for the place whose city, county, state,
+country or country code (or USA/UK) contains the region; nearby results that
+fail that check are retried unbiased, and a nearby place whose whole name is the
+query (one with a comma in it) is the last choice. Invalid or wrapped bounds
+returned by providers
are omitted rather than framing the wrong part of the globe.
+ A location search that finds nothing, or fails, leaves the field open with the
+ query still in it, focused and selected, so it can be corrected and resubmitted
+ without reopening search. The miss is shown under the field as a persistent
+ `role="alert"` message ("Location not found." or "Search failed." with what to
+ do next) referenced by the input's `aria-describedby`, with `aria-invalid` set;
+ it is not a toast. Typing, a new search, or closing the emptied field clears it.
+ A search that arrives still clears and closes the field.
+
For request viewport bias, Photon unwraps antimeridian-crossing longitude bounds
before computing their midpoint, then wraps that midpoint back into ±180 degrees.
Malformed viewport bounds add no proximity bias. Nominatim omits a crossing