Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

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

Migrated from folder: geographic/trips