-
Notifications
You must be signed in to change notification settings - Fork 951
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests to @turf/destination (#682)
* add tests to show destination results #681 * passed units to distance() in test.js
- Loading branch information
1 parent
3f22f62
commit 9305807
Showing
11 changed files
with
1,836 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"bearing": 0 | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-75, | ||
38.10096062273525 | ||
] | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"bearing": 90 | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-75, | ||
39 | ||
] | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/turf-destination/test/in/point-way-far-away.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"bearing": 90, | ||
"dist": 5000, | ||
"units": "miles" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-75, | ||
39 | ||
] | ||
} | ||
} |
Oops, something went wrong.