mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
Suggest places from Photon while a place is typed
The suggester asks Photon, the place search's keyless geocoder, for candidates as a place is typed: at most one request every 500 ms, a six second limit, and none for a minute after a refusal. Text that may be private (an email address, seven or more digits however separated, an IBAN shape, a password, PIN, token or key) is never sent. It also lists a region's bundled cities and tells whether a place lies in an extent, for the search box's place strip. The browser's Photon setting is read in one place. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
2bbcc73f03
commit
bd7b389cef
4 files changed
+649
-3
No files matched your search
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* The browser's Photon endpoint setting, read in one place. The Vite boundary
|
||||
* (build/vite.js) exposes only undefined (use the public service), null (off,
|
||||
* from an empty PHOTON_URL) or a validated https URL.
|
||||
*/
|
||||
export const PHOTON_SETTING = import.meta.env?.PHOTON_URL;
|
||||
Reference in new issue
Block a user