feat: fetch metadata from pmtiles
Some checks failed
TrafficCue CI / check (push) Failing after 1m45s
TrafficCue CI / build (push) Successful in 10m34s
TrafficCue CI / build-android (push) Has been cancelled

This commit is contained in:
2025-10-21 15:33:31 +02:00
parent 4ef2667c4e
commit 621691277e
5 changed files with 114 additions and 13 deletions

View File

@ -182,8 +182,8 @@
{(location.speed * 3.6 | 0).toFixed(0)}
</div>
{/if}
{#if getRoadMetadata()}
{@const meta = getRoadMetadata()!}
{#if getRoadMetadata().current}
{@const meta = getRoadMetadata().current!}
{#if meta.maxspeed}
{@const maxspeed = getSpeed(meta.maxspeed)}
{#if maxspeed && maxspeed < 100}