/// export type Points = GeoJSON.FeatureCollection; export type Point = GeoJSON.Feature; export type MultiPoints = GeoJSON.FeatureCollection; export type MultiPoint = GeoJSON.Feature; export type LineStrings = GeoJSON.FeatureCollection; export type LineString = GeoJSON.Feature; export type MultiLineStrings = GeoJSON.FeatureCollection; export type MultiLineString = GeoJSON.Feature; export type Polygons = GeoJSON.FeatureCollection; export type Polygon = GeoJSON.Feature; export type MultiPolygons = GeoJSON.FeatureCollection; export type MultiPolygon = GeoJSON.Feature; export type Features = GeoJSON.FeatureCollection; export type Feature = GeoJSON.Feature; export type Position = GeoJSON.Position; export type LineStringFeatures = LineString | LineStrings | MultiLineString | MultiLineStrings | GeoJSON.LineString | GeoJSON.MultiLineString export type PolygonFeatures = Polygon | Polygons | MultiPolygon | MultiPolygons | GeoJSON.Polygon | GeoJSON.MultiPolygon export type Units = "miles" | "nauticalmiles" | "degrees" | "radians" | "inches" | "yards" | "meters" | "metres" | "kilometers" | "kilometres"; export type BBox = [number, number, number, number]; /** * http://turfjs.org/docs/#feature */ export function feature(geometry: GeoJSON.GeometryObject, properties?: any): Feature; /** * http://turfjs.org/docs/#point */ export function point(coordinates: Position, properties?: any): Point; /** * http://turfjs.org/docs/#polygon */ export function polygon(coordinates: Position[][], properties?: any): Polygon; /** * http://turfjs.org/docs/#linestring */ export function lineString(coordinates: Position[], properties?: any): LineString; /** * http://turfjs.org/docs/#featurecollection */ export const featureCollection: { (features: Array): Points; (features: Array): LineStrings; (features: Array): Polygons; (features: Array): MultiPoints; (features: Array): MultiLineStrings; (features: Array): MultiPolygons; (features: Array): Features; }; /** * http://turfjs.org/docs/#multilinestring */ export function multiLineString(coordinates: Position[][], properties?: any): MultiLineString; /** * http://turfjs.org/docs/#multipoint */ export function multiPoint(coordinates: Position[], properties?: any): MultiPoint; /** * http://turfjs.org/docs/#multipolygon */ export function multiPolygon(coordinates: Position[][][], properties?: any): MultiPolygon; /** * http://turfjs.org/docs/#geometrycollection */ export function geometryCollection(geometries: Array, properties?: any): GeoJSON.GeometryCollection; /** * http://turfjs.org/docs/ */ export function radiansToDistance(radians: number, units?: Units): number /** * http://turfjs.org/docs/ */ export function distanceToRadians(distance: number, units?: Units): number /** * http://turfjs.org/docs/ */ export function distanceToDegrees(distance: number, units?: Units): number