Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
/ real-time-map Public archive

Web tool for viewing real-time map data from MyGeotab

License

Notifications You must be signed in to change notification settings

Geotab/real-time-map

Repository files navigation

Installation

Getting the Add-in:

Or

  • Download the repo and ensure you have Node V10.16 and npm V6.9.
  • Execute npm install to install all dependencies.
  • Execute npm run build, to build the add-in.
  • After the build succeeds, you can find the MyGeotab compatible add-in inside the "dist" folder!

Installation into MyGeotab:

  1. Navigate to MyGeotab/systemSettings/Add-Ins, and click new Add-in.
  2. Fill in the configuration field, or copy the values from configuration.json from this project.
  3. Proceed to click the "add" button in files, and upload the entire dist folder to MyGeotab.
  4. Navigate to the Real Time Map addin page (which should be on the sidebar if you used the provided configuration file)

Development:

  1. Execute npm install to install all dependencies.
  2. Execute npm run devBuild && npm run devServer to start the dev server (or execute dev.sh).

This creates a local server (http://localhost:9000/) that can be ran and tested locally, as long as you have an account with MyGeotab API access and can login.

Using The Real Time Map Add-in:

Upon starting the map, you will be greeted with the following landing page:

On the top left hand side is the zoom controls.

Configuration Panel

The arrow icon on the right will expand to open the configuration panel on click.

The three tabs in the panel allow users to search Exceptions, Statuses and filter the map by Vehicle/Groups.

The selected configuration is applied immediately upon click.

Users may toggle the visibility of the configuration selection by clicking on the eye-icon in the tab and remove the configuration by clicking on the clear button.

Configuration settings persist along sessions with the same user name, they're loaded and applied upon login.

Clicking on the Vehicle Icon in the Vehicle Tab will set the view to the car on the Map.

Control Bar

On the bottom of the page is the control bar, with the following features:

Two sliders on top, the rectangular slider can be dragged to select a new time onwards from which the Vehicle Paths are shown on the Map.

The arrow shaped slider can be dragged to set the Current Time.

A play/pause button to the bottom left.

Playback Speed menu to the right of the play/pause button allowing users to Fast Forward on the Map.

A live button to the bottom right that bring users to the latest feed data.

A date at bottom center, that also functions as an input, allowing users to select a specific date in the past.

Two time inputs on the bottom center. The Start Time input allows users to set the start time for the Vehicle Paths and the Current time input sets the Current Time on the Map.

Additional Features

Every vehicle marker, path and exception path will have a popup that is opened on click. It will look similar to this:

On clicking the black vehicle icon near the the top right of the pop up, the map will zoom into the vehicle and add it to the list of filtered vehicles:

If get exception data is enabled, then upon clicking an exception path, a popup will display the exception rule name, duration, as well as driver name.

If get status feed is enabled, then diagnostic status data would be displayed in the popup as well:

Additional resources

https://my.geotab.com/sdk/api/apiReference.html

https://leafletjs.com/index.html

For more information or inquiries please contact danisnguyen@geotab.com

License

MIT License

Copyright (c) 2020 Geotab Inc.

About

Web tool for viewing real-time map data from MyGeotab

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages