Skip to content

Commit

Permalink
update wu library
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Jun 14, 2018
1 parent 8ab07ff commit 083ac70
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions lib/wu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/wu.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/wu.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/wu.min.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wu",
"version": "0.3.3",
"version": "0.3.4",
"description": "web utils",
"main": "lib/wu.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default class Wu {

each(points, (point) => {
let d = that.geoDistance(origin.Latitude, origin.Longitude, point.Latitude, point.Longitude, { unit: 'mile' });
let newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)).toFixed(2) };
let newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)) };

result.results.push(newPoint);
});
Expand Down

0 comments on commit 083ac70

Please sign in to comment.