Keep the place suggester's fair-use and privacy promises

- One spacing, pause and cache for the whole tab, so a search box put up
  again does not start afresh.
- A failed request or a timeout pauses suggestions for a minute, as a
  refusal does.
- A number named as a card, a phone or an account keeps its digits
  together, so no address is read out of them; a UK postcode written
  without its space is a place, not a password.
- The docs say exactly what is sent.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju authored and Sameh Khamis committed 2026-11-18 12:20:42 -08:00
1 parent 9ec95102ca
commit c06aa37ce2
5 files changed
+126 -47

No files matched your search

+5 -5
View File
@@ -1,6 +1,6 @@
- The place suggester asks Photon for candidates while a place is typed: at
most one request every 500 ms per tab, none for a minute after a refusal,
and never text that may be private (an email address, long numbers, an
IBAN shape, a password, PIN, token or key). An empty `PHOTON_URL` turns it
off along with the place search. The search box that uses it follows
(manjunath22466, samehkhamis, #1814).
most one request every 500 ms per tab, none for a minute after a refusal
or a failed request, and never text that may be private (an email address,
long numbers, an IBAN shape, a password, PIN, token or key). An empty
`PHOTON_URL` turns it off along with the place search. The search box that
uses it follows (manjunath22466, samehkhamis, #1814).