Utils module

You can use the following functions from the Utils module:

  • getIPLocation(IPAaddress): returns an object with the following geographical properties: city, countryCode, countryName, latitude, longitude
  • getGeoDistance(alat,blat,along,blong): returns the distance between two locations, in kilometers.