Add better relation support

This commit is contained in:
Pieter Vander Vennet 2021-04-18 14:24:30 +02:00
parent 7b47af8978
commit 12afdcab75
18 changed files with 2637 additions and 2386 deletions

View file

@ -1,4 +1,4 @@
import * as turf from 'turf'
import * as turf from '@turf/turf'
export class GeoOperations {
@ -118,6 +118,9 @@ export class GeoOperations {
return inside;
};
static lengthInMeters(feature: any) {
return turf.length(feature) * 1000
}
}