diff --git a/parsers/geohash/70-geohash.js b/parsers/geohash/70-geohash.js index 8d5e0e89..7a41ede5 100644 --- a/parsers/geohash/70-geohash.js +++ b/parsers/geohash/70-geohash.js @@ -69,7 +69,7 @@ module.exports = function(RED) { var len = parseInt(value.precision || 9); if (len < 1) { len = 1; } if (len > 9) { len = 9; } - if (lat && lon) { + if (typeof lat === 'number' && typeof lon === 'number') { value.geohash = geohash.encode(lat, lon, len); RED.util.setMessageProperty(msg,node.property,value); node.send(msg);