Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perliedman/standstill
Find locations where there has been no movement, a stop, within a GeoJSON track, typically recorded from a GPS
https://github.com/perliedman/standstill
Last synced: 4 months ago
JSON representation
Find locations where there has been no movement, a stop, within a GeoJSON track, typically recorded from a GPS
- Host: GitHub
- URL: https://github.com/perliedman/standstill
- Owner: perliedman
- License: isc
- Created: 2015-06-29T11:23:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T11:41:04.000Z (almost 8 years ago)
- Last Synced: 2024-09-13T17:15:25.061Z (5 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Standstill
Find locations where there has been no movement, a stop, within a [GeoJSON](http://geojson.org/) track,
typically recorded from a GPS. Use this to analyze where a vehicle has stopped for a longer period, for example.## Install & Setup
```sh
npm install --save standstill
```## Usage
```javascript
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)