forked from MapComplete/MapComplete
SplitAction logic, not yet pushing changes to osm, pieter will take over
This commit is contained in:
parent
159e4d3350
commit
f77c1efdf5
6 changed files with 262 additions and 29 deletions
|
@ -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"});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue