Skip to content

Commit

Permalink
Only use positive elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Nov 20, 2023
1 parent aa5424c commit 6fd9cab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/geo-sqlite",
"version": "4.10.0",
"version": "4.10.1",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"keywords": [
"hebcal"
Expand Down Expand Up @@ -31,7 +31,7 @@
"@hebcal/cities": "^3.2.2",
"@hebcal/core": "^4.5.1",
"better-sqlite3": "^9.1.1",
"pino": "^8.16.1",
"pino": "^8.16.2",
"pino-pretty": "^10.2.3",
"transliteration": "^2.3.5"
},
Expand All @@ -54,10 +54,10 @@
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"ava": "^5.3.1",
"eslint": "^8.53.0",
"eslint": "^8.54.0",
"eslint-config-google": "^0.14.0",
"jsdoc": "^4.0.2",
"jsdoc-to-markdown": "^8.0.0",
"rollup": "^4.4.0"
"rollup": "^4.5.0"
}
}
6 changes: 3 additions & 3 deletions src/geodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class GeoDb {
location.geo = 'zip';
location.zip = zip;
location.population = result.Population;
if (result.Elevation) {
if (result.Elevation && result.Elevation > 0) {
location.elevation = result.Elevation;
}
return location;
Expand Down Expand Up @@ -303,7 +303,7 @@ export class GeoDb {
if (result.population) {
location.population = result.population;
}
if (result.elevation) {
if (result.elevation && result.elevation > 0) {
location.elevation = result.elevation;
}
return location;
Expand Down Expand Up @@ -347,7 +347,7 @@ export class GeoDb {
population: res.Population,
geo: 'zip',
};
if (res.Elevation) {
if (res.Elevation && res.Elevation > 0) {
obj.elevation = res.Elevation;
}
return obj;
Expand Down

0 comments on commit 6fd9cab

Please sign in to comment.