stops.nearme.ts exported a default mount() but PageRuntime only invokes the default export of stops.init; this module was imported for its side effects and never called, so the button did nothing at all. - self-bind on import with a dataset.nearBound guard against double binding - retry up to ~2s while ATMap finishes loading - map.ts: re-enable the button after a successful lookup (it stayed disabled forever, so a second press was impossible) Verified with geolocation override at 14.5880,100.4530: first press renders the map plus 8 nearest stops with distances, button re-enables, second press works, and no duplicated network requests (2 per press).
Frontend — Next.js App Router
npm install
npm run dev
Talks to backend purely via REST through nginx (/api/*, /files/*).