Find locations where there has been no movement, a stop, within a GeoJSON track, typically recorded from a GPS
ISC License
Find locations where there has been no movement, a stop, within a GeoJSON track, typically recorded from a GPS. Use this to analyze where a vehicle has stopped for a longer period, for example.
npm install --save standstill
var standstill = require('standstill'),
stops = standstill(geojson).stops;
The standstill
function, the single function exported by the module, takes a LineString
feature as
argument. The feature must have a property called coordTimes
which should contain dates or JavaScript
timestamps for each coordinate in the linestring.
The return value is an object with two properties: stops
, a FeatureCollection
of the analyzed stops from
the input linestring, and routes
, a FeatureCollection
of routes connecting the stops.