style: run prettier
This commit is contained in:
@ -35,13 +35,15 @@ export const location = $state({
|
||||
lastUpdate: null as Date | null,
|
||||
});
|
||||
|
||||
const _isDriving = $derived(location.speed > (7 / 3.6));
|
||||
const _isDriving = $derived(location.speed > 7 / 3.6);
|
||||
|
||||
export function isDriving() {
|
||||
return _isDriving;
|
||||
}
|
||||
|
||||
const roadMetadata: WrappedValue<GeoJSON.GeoJsonProperties> = $state({ current: null });
|
||||
const roadMetadata: WrappedValue<GeoJSON.GeoJsonProperties> = $state({
|
||||
current: null,
|
||||
});
|
||||
|
||||
export function getRoadMetadata() {
|
||||
return roadMetadata;
|
||||
@ -60,8 +62,11 @@ export function watchLocation() {
|
||||
location.available = true;
|
||||
location.heading = pos.coords.heading;
|
||||
location.lastUpdate = new Date();
|
||||
|
||||
getMeta({ lat: location.lat, lon: location.lng }, "transportation").then((meta) => {
|
||||
|
||||
getMeta(
|
||||
{ lat: location.lat, lon: location.lng },
|
||||
"transportation",
|
||||
).then((meta) => {
|
||||
roadMetadata.current = meta;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user