trip-motion-simulator
v1.0.0
Published
A module for generating simulated location and vehicle motion telemetry.
Downloads
1
Readme
Trip Motion Simulator
A module for generating simulated location and vehicle motion telemetry.
Overview
trip-motion-simulator
is a fork of SharedStreets's trip-simulator
. It adds to the original package the generation of vehicle motion metrics. These include:
- acceleration on the X, Y, and Z axes
- rotation rate on the X, Y, and Z axes
- heading
For additional information about the simulator's features and how to use it, visit the original repository.
Install
npm install -g trip-motion-simulator
CLI
trip-motion-simulator
-h,--help show help
--config config car,bike,scooter
--pbf osm.pbf file
--graph osrm graph file
--agents number of agents
--start start time in epoch milliseconds
--seconds number of seconds to simulate
--probes GeoJSON probes output file
--traces GeoJSON traces output file
--trips MDS trips output file
--changes MDS status changes output file
--log log level - refer to https://github.com/pinojs/pino/blob/master/docs/api.md#level-1
Test
npm test
Lint
npm run lint