Skip to content

Commit

Permalink
Fixed bug in example code that was crashing shortestPath doc page.
Browse files Browse the repository at this point in the history
  • Loading branch information
smallsaucepan committed Oct 10, 2024
1 parent 77bc71b commit 8efb53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/turf-shortest-path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { Graph, GridNode, astar } from "./lib/javascript-astar.js";
* var start = [-5, -6];
* var end = [9, -6];
* var options = {
* obstacles: turf.polygon([[[0, -7], [5, -7], [5, -3], [0, -3], [0, -7]]])
* obstacles: turf.polygon([[[0, -7], [5, -7], [5, -3], [0, -3], [0, -7]]]).geometry
* };
*
* var path = turf.shortestPath(start, end, options);
Expand Down

0 comments on commit 8efb53b

Please sign in to comment.