@turf/line-slice
Version:
Useful for extracting only the part of a route between waypoints.
14 lines (11 loc) • 305 B
text/typescript
import { Feature, LineString } from 'geojson';
import { Coord } from '@turf/helpers';
/**
* http://turfjs.org/docs/#lineslice
*/
declare function lineSlice(
startPt: Coord,
stopPt: Coord,
line: Feature<LineString> | LineString
): Feature<LineString>;
export { lineSlice as default, lineSlice };