index.d.ts 410 B

12345678910111213141516171819202122
  1. import {
  2. Polygon,
  3. Feature,
  4. FeatureCollection,
  5. Coord,
  6. LineString,
  7. Units,
  8. } from "@turf/helpers";
  9. /**
  10. * http://turfjs.org/docs/#shortestpath
  11. */
  12. export default function shortestPath(
  13. start: Coord,
  14. end: Coord,
  15. options?: {
  16. obstacles?: Polygon | Feature<Polygon> | FeatureCollection<Polygon>;
  17. minDistance?: number;
  18. units?: Units;
  19. resolution?: number;
  20. }
  21. ): Feature<LineString>;