Avatar

mxdvl

Digital toolmaker Currently client-side @guardian
Joined March 5, 2023
Public vals
6
mxdvl avatar
sleep
@mxdvl
Script
Forked from neverstew/sleep
mxdvl avatar
trips
@mxdvl
Script
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. Example on Observable
mxdvl avatar
round
@mxdvl
Script
Round numbers with arbitrary decimal precision
mxdvl avatar
cities
@mxdvl
HTTP (deprecated)
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 .
mxdvl avatar
haversine_distance
@mxdvl
Script
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.
Next