Skip to content

Commit

Permalink
Only bleed longitude to reduce loc-tree.json filesize.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hallberg committed Feb 13, 2017
1 parent 49d7a74 commit df029da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/loc-tree.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zips",
"version": "1.1.1",
"version": "1.1.2",
"description": "Light, fast, tree-based way to get cities by zipcode and location.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions test/by-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ describe('Valid locations', function() {
});
it('return multiple closest when asked', function() {
let count = 3;
assert.equal(count, zips.getByLocation(41.5, -75.5, count).length);
// 41 -75 is the most populated quadrant
assert.equal(count, zips.getByLocation(41.5, -74.5, count).length);
// 41 -74 is the most populated quadrant
});
const randomLocCount = 1000;
it('always return a city when the location is in the US (checking ' + randomLocCount + ' random points)', function() {
Expand Down

0 comments on commit df029da

Please sign in to comment.