title: TypeError: Cannot read property 'toString' of undefined at Geolib.isDecimal
body: <p>I have a push notification system using Firebase cloud functions, and recently I noticed that the push notifications weren't coming in anymore(they had been working for the past few months). When I go into the logs I'm seeing </p>
  
  <pre><code>TypeError: Cannot read property 'toString' of undefined
  at Geolib.isDecimal   (/user_code/node_modules/geolib/dist/geolib.js:1326:26)
  at Geolib.useDecimal (/user_code/node_modules/geolib/dist/geolib.js:1241:22)
  at Geolib.coords (/user_code/node_modules/geolib/dist/geolib.js:179:85)
  at Geolib.getDistance (/user_code/node_modules/geolib/dist/geolib.js:247:26)
  at userValue (/user_code/index.js:104:34)
  at /user_code/index.js:94:4
  at /user_code/node_modules/firebase-admin/lib/database/database.js:114:356
  at Xb.h.ha (/user_code/node_modules/firebase-admin/lib/database/database.js:50:275)
  at Xb.h.ha (/user_code/node_modules/firebase-admin/lib/database/database.js:50:268)
  at Xb.h.ha (/user_code/node_modules/firebase-admin/lib/database/database.js:50:310)
  </code></pre>
  
  <p>I haven't changed any of the code, and re-downloaded Geolib but still won't budge, any help would be greatly appreciated.</p>
  
  <p>MY CODE:</p>
  
  <pre><code> exports.postMade = functions.database.ref('/PostData/post/{pushId}').onWrite(event =&gt; {
  
  console.log('Someone made a post');
  
  var valueObject = event.data.val();
  
  console.log('the data in valueObject'+ valueObject)
  
  return admin.database().ref('Users').once('value').then(snapshot =&gt; {
  
      snapshot.forEach(function(child){
          var values = child.val();
          console.log('the values inside of value'+ values)
           userValue(values.userLat,values.userLong,values.radiusDistance,values.token,valueObject.lat,valueObject.long,valueObject.userUid,valueObject.text)
      })
  });
  });
  
  
  function userValue(lat,long,radiusDistance,token,postLat,postLong,postUser,postText){
  
  var unconvertedDistance = geolib.getDistance({latitude: lat, longitude: long}, {latitude: postLat, longitude: postLong});
  
  var convertedDistance = geolib.convertUnit('mi',unconvertedDistance, 0)
  
  console.log('the values of both unconvertedDistance and convertedDistance'+ unconvertedDistance,+ convertedDistance)
  
  if (convertedDistance &lt;= radiusDistance){
  const payload = {
            notification: {
              title: "Someone posted near you!",
              body: postText,
              badge: "1",
              sound: "default"
          },
      };
  const options = {
       priority: "high",
          timeToLive: 60 * 60 * 24
      };
  
  return admin.messaging().sendToDevice(token, payload, options);
  };
  };
  </code></pre>