Files
web-at-transit/frontend/public
Bkk1234 8eb101c5f1 Promote 'near me' to the third search tab, gated on secure context
Searching now has three peer modes on /stops: by stop code, by place name,
and by device location.

- StopsView: third tab (data-mode=near) plus its own panel holding the
  location button, hint and result area; the button no longer sits in the
  toolbar with Search/Reset/Back
- stops.search.ts: setMode handles the near mode, disables the other panels,
  hides the full stop list while the ranked results are shown, and skips
  filtering in that mode
- stops.nearme.ts: applies the security gate - the tab is revealed only when
  window.isSecureContext && navigator.geolocation exist, otherwise it is
  hidden and any active near mode falls back to stop-code search
- i18n: stops.modeNear / nearCta / nearHint (th + en, both copies)

Distance is computed from each stop's own coordinates (busstop_list.json)
against the device position, sorted nearest first.

Verified: secure context shows all three tabs and returns a ranked map;
a forced insecure context hides the tab and refuses the mode.
2026-10-24 00:09:04 +07:00
..
2026-10-23 17:43:11 +07:00
2026-05-24 22:55:17 +07:00