feat: get nearby POIs
All checks were successful
TrafficCue CI / check (push) Successful in 57s
TrafficCue CI / build (push) Successful in 1m29s
TrafficCue CI / build-android (push) Successful in 17m31s

This commit is contained in:
2025-09-13 13:18:53 +02:00
parent a48ed785f5
commit 3d7dacba9b
5 changed files with 172 additions and 3 deletions

View File

@ -2,7 +2,9 @@
import {
BriefcaseIcon,
DownloadIcon,
FuelIcon,
HomeIcon,
ParkingSquareIcon,
SchoolIcon,
} from "@lucide/svelte";
import { Button } from "../../ui/button";
@ -104,6 +106,40 @@
<VehicleSelector />
<div
style="display: flex; gap: 0.5rem; justify-content: space-evenly;"
class="mt-2"
>
<Button
variant="secondary"
size="lg"
style="flex: 1;"
onclick={() => {
view.switch("nearby-poi", {
tags: "amenity=fuel",
});
}}
>
<FuelIcon />
<!-- TODO: hide if no space -->
{m["poi.fuel"]()}
</Button>
<Button
variant="secondary"
size="lg"
style="flex: 1;"
onclick={() => {
view.switch("nearby-poi", {
tags: "amenity=parking",
});
}}
>
<ParkingSquareIcon />
<!-- TODO: hide if no space -->
{m["poi.parking"]()}
</Button>
</div>
{#if !window.__TAURI__}
<Card.Root style="margin-top: 1rem;">
<Card.Header>