🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

standstill

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

standstill

Find locations where there has been no movement, a stop, within a GeoJSON track, typically recorded from a GPS

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Standstill

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.

Install & Setup

npm install --save standstill

Usage

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.

Options

  • maxTimeGap: maximum allowed time (in milliseconds) between two positions before considering the period between them as "no data", for example when the unit is turned off; default 300,000 (five minutes)
  • stopTolerance: maximum allowed movement (positioning jitter) during a stop, in kilometers; default 0.1 km
  • stopMinTime: minimum number of milliseconds to consider something a stop; default 300,000 (five minutes)

Keywords

gps

FAQs

Package last updated on 27 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts