From 4dcfa8f9daa9ff1bbec37f2e51e3572ecdb8367e Mon Sep 17 00:00:00 2001 From: Manuel Bieh Date: Fri, 24 May 2019 02:13:53 +0100 Subject: [PATCH] fix: added missing exports --- README.md | 2 +- src/index.ts | 4 ++++ src/isValidLatitude.ts | 1 + src/isValidLongitude.ts | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 981fcf2..b2d22d3 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Calculates the distance between two geo coordinates. This method is more accurat It takes the same (up to 3) arguments as `getDistance`. ```js -geoilib.getPreciseDistance( +geolib.getPreciseDistance( { latitude: 51.5103, longitude: 7.49347 }, { latitude: "51° 31' N", longitude: "7° 28' E" } ); diff --git a/src/index.ts b/src/index.ts index 4bcd6dd..8e98517 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,10 @@ export { default as computeDestinationPoint } from './computeDestinationPoint'; export { default as convertSpeed } from './convertSpeed'; +export { default as convertDistance } from './convertDistance'; +export { default as convertArea } from './convertArea'; export { default as decimalToSexagesimal } from './decimalToSexagesimal'; export { default as findNearest } from './findNearest'; +export { default as getAreaOfPolygon } from './getAreaOfPolygon'; export { default as getBounds } from './getBounds'; export { default as getBoundsOfDistance } from './getBoundsOfDistance'; export { default as getCenter } from './getCenter'; @@ -25,6 +28,7 @@ export { default as isDecimal } from './isDecimal'; export { default as isPointInLine } from './isPointInLine'; export { default as isPointInPolygon } from './isPointInPolygon'; export { default as isPointNearLine } from './isPointNearLine'; +export { default as isPointWithinRadius } from './isPointWithinRadius'; export { default as isSexagesimal } from './isSexagesimal'; export { default as isValidCoordinate } from './isValidCoordinate'; export { default as isValidLatitude } from './isValidLatitude'; diff --git a/src/isValidLatitude.ts b/src/isValidLatitude.ts index 399b0a7..60ac0fc 100644 --- a/src/isValidLatitude.ts +++ b/src/isValidLatitude.ts @@ -3,6 +3,7 @@ import isSexagesimal from './isSexagesimal'; import sexagesimalToDecimal from './sexagesimalToDecimal'; import { MAXLAT, MINLAT } from './constants'; +// TODO: Add tests const isValidLatitude = (value: any): boolean => { if (isDecimal(value)) { if (parseFloat(value) > MAXLAT || value < MINLAT) { diff --git a/src/isValidLongitude.ts b/src/isValidLongitude.ts index d7254ba..9326590 100644 --- a/src/isValidLongitude.ts +++ b/src/isValidLongitude.ts @@ -3,6 +3,7 @@ import isSexagesimal from './isSexagesimal'; import sexagesimalToDecimal from './sexagesimalToDecimal'; import { MAXLON, MINLON } from './constants'; +// TODO: Add tests const isValidLongitude = (value: any): boolean => { if (isDecimal(value)) { if (parseFloat(value) > MAXLON || value < MINLON) {