Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds methods to compute latitude and longitude deltas from a distance, which is typically useful to be able to query close coordinates. We also add a centroid computation in a sphere, that is uesful to determine the center location of a set of geo points.
- Loading branch information
1 parent
973c0aa
commit 9eb7541
Showing
3 changed files
with
164 additions
and
5 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export function computeSpeed(distance: number, duration: number): number; | ||
export function geodesicDistance(point1: import("../types").Coordinates, point2: import("../types").Coordinates): number; | ||
export function computeSphericalCenter(coordinates: Array<import("../types").Coordinates>): import("../types").Coordinates; | ||
export function deltaLongitude(latitude: number, distance: number): number; | ||
export function deltaLatitude(distance: number): number; |