Fix reviews for way objects, fix #1296

This commit is contained in:
Pieter Vander Vennet 2023-02-06 00:30:50 +01:00
parent fa44f8deb7
commit f8f30f8d7a
2 changed files with 12 additions and 10 deletions

View file

@ -10,7 +10,7 @@ import {
MultiPolygon,
Polygon,
} from "@turf/turf"
import { GeoJSON, LineString, Point } from "geojson"
import { GeoJSON, LineString, Point, Position } from "geojson"
import togpx from "togpx"
import Constants from "../Models/Constants"
@ -46,7 +46,7 @@ export class GeoOperations {
* @param lonlat0
* @param lonlat1
*/
static distanceBetween(lonlat0: [number, number], lonlat1: [number, number]) {
static distanceBetween(lonlat0: [number, number], lonlat1: [number, number] | Position) {
return turf.distance(lonlat0, lonlat1, { units: "meters" })
}