SplitAction logic, not yet pushing changes to osm, pieter will take over

This commit is contained in:
Arno Deceuninck 2021-07-14 15:28:02 +02:00
parent 159e4d3350
commit f77c1efdf5
6 changed files with 262 additions and 29 deletions

View file

@ -280,7 +280,7 @@ export class GeoOperations {
* @param point Point defined as [lon, lat]
*/
public static nearestPoint(way, point: [number, number]){
return turf.nearestPointOnLine(way, point);
return turf.nearestPointOnLine(way, point, {units: "kilometers"});
}
}