create slope segments

This commit is contained in:
vcoppe committed 2024-06-25 19:41:37 +02:00
1 parent 42fe819a72
commit f823bcade5
6 files changed
+101 -26

No files matched your search

@@ -1,5 +1,6 @@
import { earthRadius, ramerDouglasPeucker } from "$lib/simplify";
import type { GPXFile, TrackSegment } from "gpx";
import { ramerDouglasPeucker, type GPXFile, type TrackSegment } from "gpx";
const earthRadius = 6371008.8;
export function getZoomLevelForDistance(latitude: number, distance?: number): number {
if (distance === undefined) {