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.
Frontend — Next.js App Router
npm install
npm run dev
Talks to backend purely via REST through nginx (/api/*, /files/*).