Search across names, addresses and neighbourhoods; editable planner endpoints; open in another app
Summary
Search, place details, planner endpoints, time control and an external-app hand-off.
search
tokens match name | address (house numbers exact) | Italian category word | Turin neighbourhood
"472" / "fermata 472" → GTT stop first; "15" / "M1" / "linea 4" → that line's 3 nearest stops
Photon (when allowed): full query; if empty and a neighbourhood is named → one retry near it (radius-filtered)
planner
Da ⇄ A editable fields → in-planner search (+ "La tua posizione", "Scegli sulla mappa", saved places)
one time chip: "Partenza adesso" / "Partenza 07:05 · domani" / "Arrivo entro 09:00 · gio 15 ott" (Europe/Rome)
place details
Indicazioni · Salva · sito · telefono · "Apri in un'altra app" (geo:lat,lon?q=lat,lon(Name) → Android chooser)
"Fonti e dettagli": per-field source, licence, date; no invented opening hours
New data: src/data/localities.json — 79 Turin neighbourhoods from OpenStreetMap (ODbL), approximate radii, built by scripts/localities.mjs.
New dependency: @react-native-community/datetimepicker 8.4.4 (Android system dialogs; AndroidX + Material Components, no Play services, no new permissions).
Evidence
- Before: "Eataly" → 16 results, "Eataly Lingotto" → 0 (device-observed); every token had to be in the name.
After: relevance tests from real cases (Eataly Lingotto via mocked Photon neighbourhood retry, "farmacia via po", "bar san salvario", "via nizza 230"); "Solo ricerca locale" sends nothing. bun run verify: typecheck, zero-warning lint, 452 tests. Web export builds; screenshots at 412 px light/dark inspected.geo:format checked against Organic Maps' parser tests (geo_url_tests.cpp, GeoURL_GeoLabel).- Not yet covered: Android runtime (date/time dialogs, hand-off chooser, keyboard/back in the endpoint editor, TalkBack) — emulator check pending.
Merge Danger
Door: two-way
Blast Radius: search-and-planner
Search ranking, planner layout and a new native module (requires a rebuilt APK).
Summary by cubic
Search now matches across names, addresses, Italian category words, and a bundled neighbourhood gazetteer, and adds editable planner endpoints, a compact time chip, and an "open in another app" action on place details.
Search
- Typed queries match words in name, address, house numbers, Italian category words, and a bundled 79-neighbourhood gazetteer; Photon retries near the named neighbourhood when the full query misses.
- Stop codes and line names answer from the bundled GTT catalog; every recognised transit prefix stays on the device and one-character codes work.
- Results distinguish places, addresses, streets, areas, stops, and lines; stops found by name are pinned and framed when they lead.
Planner and details
- Origin and destination fields are editable with in-planner search, device position, map picking, and swap; closing the editor keeps the planner and any pending origin fix.
- A single time chip offers Partenza/Arrivo with date/time dialogs in Europe/Rome; the web fallback refuses nonexistent DST times.
- Place details show per-source provenance and dates and add "Apri in un'altra app" via a
geo:intent.
Refactors and fixes
- Result and stop framing eases to a computed camera capped at zoom 17 with a minimum fit area, so tight result clusters stay readable.
- Only the explicit header expand dismisses the keyboard; expanding over a results sheet no longer blurs the search field.
- Decimal and thousands separators render in Geist Sans so "4,2 km" stays tight.
- Adds
@react-native-community/datetimepicker8.4.7 (pinned for the Kotlin 2.2.20 toolchain, excluded from expo install validation; a rebuilt APK is required).
Summary by CodeRabbit
- New Features
- Search now includes GTT stops and lines alongside places, with matching results shown on the map.
- Find places by names, addresses, categories, and recognized neighbourhoods.
- Edit and swap trip origins and destinations, and choose departure or arrival times using date and time pickers.
- Open place and trip destinations in another app. Place details now show source, update, and location-accuracy information.
- Improvements
- Search results and planner controls provide clearer labels and status messages.