A list of most interesting vals. Mainly related to geographic manipulations.
Implementation of the Haversine formula for calculating the great circle distance between two points on a sphere.
If no radius
is provided, the average Earth’s radius is used with a value of 6371km.
Retrieve a city for a given coordinates in the format [longitude, latitude]
.
An OPENCAGE_API_KEY
variable is necessary and can be obtained for free on their website.
Turn an array of coordinates in the format [longitude, latitude]
into an array of GeoJSON features as line strings.
An optional distance threshold between subsequent points decides when distinct trips are created. Defaults to 120m.
Round numbers with arbitrary decimal precision
A val to list other vals, very meta!
You’re likely viewing this page generated from this very val… fork your own!
Until folder sharing is supported, this may be the best way to point to specific vals?