Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove unnecessary extents lib file

  • Loading branch information...
commit ba7c25443bf94e673321cedd7b81938bcfce80b0 1 parent eb82a29
@substack authored
Showing with 0 additions and 11 deletions.
  1. +0 −1  index.js
  2. +0 −10 lib/extents.js
View
1  index.js
@@ -15,7 +15,6 @@ function commonHash (hashes) {
});
return commondir(paths).split('/').join('');
}
-var extents = require('./lib/extents');
function containment (hash, polygon) {
var decoded = geohash.decode(hash);
View
10 lib/extents.js
@@ -1,10 +0,0 @@
-module.exports = function (points) {
- var lats = points.map(function (p) { return p[0] });
- var lons = points.map(function (p) { return p[1] });
- return {
- w : Math.min.apply(null, lons),
- s : Math.min.apply(null, lats),
- e : Math.max.apply(null, lons),
- n : Math.max.apply(null, lats),
- };
-};
Please sign in to comment.
Something went wrong with that request. Please try again.