feat: add speed limit display
Some checks failed
TrafficCue CI / check (push) Failing after 1m53s
TrafficCue CI / build (push) Successful in 10m10s
TrafficCue CI / build-android (push) Successful in 30m40s

This commit is contained in:
2025-10-20 17:51:06 +02:00
parent b46646a462
commit 4ef2667c4e
5 changed files with 366 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import { LNV_SERVER } from "$lib/services/hosts";
import { routing } from "$lib/services/navigation/routing.svelte";
import { getTransportationMeta } from "$lib/services/TileMeta";
import { map } from "./map.svelte";
export const location = $state({
@ -39,6 +40,12 @@ export function isDriving() {
return _isDriving;
}
const roadMetadata = $derived(getTransportationMeta({ lat: location.lat, lon: location.lng }));
export function getRoadMetadata() {
return roadMetadata;
}
export function watchLocation() {
if (navigator.geolocation) {
navigator.geolocation.watchPosition(