Åpne i kartapp for gangvei til tilfluktsrom #2

Open
opened 2026-03-08 19:14:19 +01:00 by olemd · 0 comments
Owner

Add a button (on the bottom sheet and/or compass view) that opens walking directions to the selected shelter in an external maps app.

Implementation

  • Use an ACTION_VIEW intent with geo: URI: geo:lat,lon?q=lat,lon(Tilfluktsrom - address)
  • The geo: URI is handled by whatever maps app the user has installed (OsmAnd, Organic Maps, Google Maps, etc.)
  • OsmAnd and Organic Maps both support offline navigation with geo: intents — this is the ideal pairing for degraded-network scenarios
  • Do NOT hardcode Google Maps URLs — use the generic geo: scheme
  • Falls back gracefully if no maps app is installed (show Toast with coordinates to copy)
  • Add button next to the shelter address in the bottom sheet

Why

In an actual emergency, finding the shelter on the map is only half the problem — you need walking directions to get there. The geo: intent works with offline-capable maps apps (OsmAnd, Organic Maps), which is critical when the network is degraded or down.

Add a button (on the bottom sheet and/or compass view) that opens walking directions to the selected shelter in an external maps app. ## Implementation - Use an `ACTION_VIEW` intent with `geo:` URI: `geo:lat,lon?q=lat,lon(Tilfluktsrom - address)` - The `geo:` URI is handled by whatever maps app the user has installed (OsmAnd, Organic Maps, Google Maps, etc.) - OsmAnd and Organic Maps both support offline navigation with `geo:` intents — this is the ideal pairing for degraded-network scenarios - Do NOT hardcode Google Maps URLs — use the generic `geo:` scheme - Falls back gracefully if no maps app is installed (show Toast with coordinates to copy) - Add button next to the shelter address in the bottom sheet ## Why In an actual emergency, finding the shelter on the map is only half the problem — you need walking directions to get there. The `geo:` intent works with offline-capable maps apps (OsmAnd, Organic Maps), which is critical when the network is degraded or down.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olemd/tilfluktsrom#2
No description provided.