A live demo can be accessed at degraalridders.be/geo.
ISC, see LICENSE file.
- Node.js (v8.x LTS recommended) and NPM (v5.x recommended). Various download options are available at nodejs.org, including instructions using package managers. (NPM usually is included in the Node.js install)
- Optional:
make
app/waypoints.json
contains the gps route in JSON format. You can easily
configure your own route by modifying the waypoints
array.
accuracy
(in meters): minimum GPS accurracy required before the GPS locations is considered as valid. i.e. as long as the GPS error is greater than this value, it is assumed you don't have a position fix.tolerance
(in meters): tolerance of GPS position in respect to waypoint. i.e. if GPS position gets closer than this value to the current waypoint, it is assumed you have arrived.maxAge
(in seconds): maximum age of a GPS position. i.e. if last GPS reading is older than this amount of seconds, it is assumed you have lost signal and your position is no longer valid.waypoints
: array of waypoint coordinates for the route. Each waypoint has two values, defining its position in the WGS 84 coordiate system, a.k.a. regular GPS coordinates.latitude
(in decimal degrees)longitude
(in decimal degrees)
- Running a development server:
make run
- Open a browser and go to http://localhost:8080.
- Building a production version:
make
- The production files will be in the
dist
folder. Copy them to your webserver.
- Installing dependencies:
npm install
- Running a development server:
npm start
- Open a browser and go to http://localhost:8080.
- Building a production version:
npm run build
- The production files will be in the
dist
folder. Copy them to your webserver.