Skip to content

Commit

Permalink
Merge pull request #188 from manuelbieh/3.0.0
Browse files Browse the repository at this point in the history
fix: added missing exports
  • Loading branch information
manuelbieh authored May 24, 2019
2 parents cd7cb08 + 4dcfa8f commit dee47c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
);
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/isValidLatitude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/isValidLongitude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dee47c5

Please sign in to comment.