SHARE
TWEET

Untitled

a guest Jan 24th, 2020 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 if (key == "localizationLat" && currentFilters["localizationLat"].value != null && currentFilters["localizationLng"].value != null) {  
  2.                     console.log("GEO LOC", currentFilters["localizationLat"], currentFilters["localizationLng"])               
  3.                     if("localizationLat" in lead && "localizationLng" in lead) {
  4.                         if( getDistanceFromLatLonInKm(Number(currentFilters["localizationLat"].value), Number(currentFilters["localizationLng"].value), Number(lead["localizationLat"]), Number(lead["localizationLng"])) < 10) {
  5.                             return true;
  6.                         } else {
  7.                             return false
  8.                         }
  9.                     }
  10.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top