Tracker Constructor

Visual configuration tool for building and previewing embedded tracking widgets. Configure all options through a form, preview live, and generate ready-to-use embed URLs.

Tracker Constructor

Overview

The Tracker Constructor is a visual configuration tool that helps developers build and preview embedded tracking widgets. Instead of manually assembling URL parameters, you use a form-based interface to configure every aspect of the tracker, see a live preview, and generate a ready-to-use URL — all without writing code.

Access the constructor at the root of your frontend domain (e.g. [https://your-frontend.com/](https://spa.telematicssdk.com/live-tracking/)).


How It Works

The constructor has a two-panel layout:

  • Left panel — Configuration form with all available settings
  • Right panel — Live iframe preview of the embedded tracker

Workflow

  1. Configure — Fill in connection details, choose display preferences, set optional filters
  2. Preview — Click "Load Preview" to render the tracker in the right panel with your settings
  3. Generate — Click "Generate Shareable Link" to produce a URL with all parameters encoded

The generated URL can be used directly in an <iframe> tag or shared with other developers on your team.

Configuration Sections

Connection

FieldRequiredDescription
API ServerYesChoose: Production (auto-detected), Current host (auto-detect), or Custom URL
Instance IDYesYour tracking instance UUID
JWT TokenYesAuthentication token for the WebSocket connection

The API Server dropdown automatically detects the production endpoint from the deployment configuration. Select "Custom URL" to point at a self-hosted backend.

Device Filter

FieldRequiredDescription
Device TokenNoSet to track a single device. Leave empty for multi-device mode (all devices in the instance).

Map Defaults

FieldDefaultDescription
LatitudeWorld viewInitial map center latitude
LongitudeWorld viewInitial map center longitude
Zoom2 (world) / 13 (with coordinates)Initial zoom level (3–18)

When latitude and longitude are provided, the map starts centered on that location. Otherwise it opens with a global view.

Units & Formatting

FieldOptionsDefault
UnitsMetric (km/h) / Imperial (mph)Metric
Date FormatUnix timestamp / ISO 8601 / Human-readableUnix
TimezoneAny timezone string (e.g. America/New_York)UTC

Speed Monitoring

FieldFormatDescription
Speed LimitNumber, or number + unit (80, 80kmh, 50mph)Devices exceeding this limit are highlighted on the map. When no unit suffix is given, the current unit system applies.

Display

ToggleDefaultDescription
Hide overlay UIOffHides the floating status button and fit-all button for a clean, minimal embed. Recommended for customer-facing iframes.
Debug ModeOffEnables detailed console logging for troubleshooting integration issues

Using the Generated URL

Embed in an iFrame

<iframe
  src="GENERATED_URL_HERE"
  style="width: 100%; height: 600px; border: none;"
  allow="clipboard-write">
</iframe>

Share with Your Team

The generated URL contains all configuration as query parameters. Share it with other developers for review, testing, or integration into different parts of your application.

Iterate Quickly

Adjust any setting in the left panel and click "Load Preview" again to see the change immediately — no page reload required.

Parameter Mapping

The constructor generates a URL with the following query parameters:

Constructor FieldURL ParameterIncluded when
API Server / Custom URLapiBaseNon-empty (custom or production)
Instance IDinstanceIdAlways
JWT TokenjwtAlways
Device TokendeviceTokenNon-empty
LatitudelatNon-empty
LongitudelngNon-empty
ZoomzoomNon-empty
UnitsunitsAlways
Date Formatdate_formatAlways
TimezonetimezoneAlways
Speed LimitmaxspeedNon-empty
Hide overlay UIhideUI=trueChecked
Debug Modedebug=trueChecked

Tips

  • Start simple — Enter just the Instance ID and JWT to see the basic tracker, then add options incrementally
  • Test single device mode — Enter a device token to verify that auto-centering and trip history work for your use case
  • Preview before sharing — Always click "Load Preview" before generating a link to confirm the configuration is correct
  • Customer embeds — Enable "Hide overlay UI" for any embed that will be shown to end users or customers
  • Debug integration issues — Enable "Debug Mode" to see detailed connection and data flow logs in the browser console

Related