Commit graph

15 commits

Author SHA1 Message Date
29afb4f115 Use NaPTAN data for the UK stop finder
Import active NaPTAN stops into a local SQLite spatial index, including conversion of British National Grid coordinates. Add local searches, shareable stop links, source details and transport mode colours while retaining OSM route lookup by ATCO code.

Closes #1
2026-09-18 18:04:55 +01:00
8ed7b8d112 Reuse stops when zooming within loaded map bounds 2026-08-15 16:38:43 +01:00
7823349f8f Zoom to searches before stops load 2026-08-15 15:42:26 +01:00
ae5ad9fabc Fit mobile searches above results sheet 2026-08-15 13:09:33 +01:00
98b5951cbb Keep selected stop visible on mobile 2026-08-15 13:06:29 +01:00
827435bd92 Shorten bus stop search placeholder 2026-08-15 12:58:09 +01:00
c3999d796d Improve desktop geolocation handling 2026-08-15 12:53:41 +01:00
07080c79d3 Link bus stop finder source code 2026-08-15 12:45:18 +01:00
aeb429768b Highlight map stops from result list 2026-08-15 12:35:09 +01:00
7da704d837 Skip choice for unique postcode matches 2026-08-15 12:09:24 +01:00
71e1b57164 Improve stop search and add documentation 2026-08-15 12:06:23 +01:00
a2e4292b46 Add UK bus stop finder 2026-08-15 11:35:36 +01:00
e0ade9e5ab Add web frontend and refactor core to use OsmError
- Refactor core.py: replace sys.exit() calls with OsmError exceptions
  so the library is safe to use from Flask and other callers
- Add fetch_sibling_routes and fetch_route_master_routes to core.py
- Add Flask web frontend (web/app.py, templates, static assets):
  - Map view with Leaflet; full route drawn in grey on load
  - Sidebar stop list; active-slot UX for From/To selection
  - Segment preview and download (full route or selected segment)
  - Include-stops toggle applied client-side
  - Bookmarkable URLs: GET /<relation_id>
  - Clear selection button
  - Other directions panel (sibling routes from same route_master)
  - route_master handling: draws all member routes in colour on map
    with links to each individual direction
- Add SVG favicon
- Add py.typed marker; add .gitignore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 18:59:21 +00:00
d3e6d7ac42 Reorganise 2026-02-27 14:27:38 +00:00
2a2a42fe5d Initial commit. 2026-02-27 10:59:27 +00:00