Functions that are usable for many aspect of our planet Earth

Usage no npm install needed!

<script type="module">
  import earthFunctions from '';


Earth Functions

Contains many different functions that can be used to measure different aspect of our planet Earth


  1. Haversine

Used to measure the distances between 2 points on a sphere using its latitude and longitude pair and the sphere's radius

  1. Polyline

A polyline is a encoded string which contains inside itself a serial of connecting points, whereas each point is a pair of latitude and longitude

  1. Lapse rate

Used to measure the change in temperature at two different altitudes


  1. Unit conversions
  • Degree from/to radians
  • Celcius from/to Fahrenheit