Skip to content

Server Attributes Data Dto Reference

The ThingsTelemetry\Traccar\Dto\ServerAttributesData represents the configurable preferences and UI behavior of a Traccar server instance. It provides structured access to map display settings, unit preferences, API keys, and user interface controls defined in the Traccar configuration.

WARNING

These attributes may not be exhaustively documented. Please let us know if you find any missing attributes or better make a PR.

php
use ThingsTelemetry\Traccar\Facades\Server;

$attributes = Server::getInformation()->attributes;

languagestring|null

Preferred interface language for the server UI.

php
$attributes->language; // "en"

mapGeofencesboolean

If true, displays geofences on the server map.

php
$attributes->mapGeofences; // true

mapLiveRoutesstring|null

Specifies the live route line color or style for map visualization.

php
$attributes->mapLiveRoutes; // "#0099FF"

mapDirectionstring|null

Determines whether to show directional arrows on map routes.

php
$attributes->mapDirection; // "arrows"

mapFollowboolean

If true, the map automatically follows active device movement.

php
$attributes->mapFollow; // true

mapClusterboolean

Enables clustering of devices on the map for better visibility.

php
$attributes->mapCluster; // true

mapOnSelectboolean

If true, selecting a device pans the map to its location.

php
$attributes->mapOnSelect; // false

activeMapStylesstring|null

Specifies the active map style or theme (e.g., “dark”, “satellite”).

php
$attributes->activeMapStyles; // "dark"

devicePrimarystring|null

Primary device attribute to show in the list view.

php
$attributes->devicePrimary; // "name"

deviceSecondarystring|null

Secondary attribute displayed under device name.

php
$attributes->deviceSecondary; // "status"

soundEventsmixed

Event notification sound identifier.

php
$attributes->soundEvents; // "??"

soundAlarmsmixed

Alarm notification sound file or key.

php
$attributes->soundAlarms; // "??"

positionItemsstring|null

Defines how position items are displayed (e.g., “table” or “list”).

php
$attributes->positionItems; // "table"

googleKey, locationIqKey, mapboxAccessToken, mapTilerKey, bingMapsKey, openWeatherKey, tomTomKey, hereKeystring|null

API keys for external integrations such as maps, weather, and geocoding services.

php
$attributes->mapboxAccessToken; // "MAPBOX_TOKEN"

notificationTokensstring|null

Comma-separated tokens for push notification services.

php
$attributes->notificationTokens; // "TOKEN1,TOKEN2"

uiDisableSavedCommands, uiDisableGroups, uiDisableAttributes, uiDisableEvents, uiDisableVehicleFeatures, uiDisableDrivers, uiDisableComputedAttributes, uiDisableCalendars, uiDisableMaintenanceboolean

Flags controlling which UI sections or features are hidden/disabled in the web interface.

php
$attributes->uiDisableGroups; // false

disableShareboolean

Disable Device Sharing

php
$attributes->disableShare; // false

darkModeboolean

Enable Dark Mode for the Traccar web UI.

php
$attributes->darkMode; // false

webLiveRouteLengthinteger|null

Maximum number of points to render in live routes.

php
$attributes->webLiveRouteLength; // 1000

mapLineWidthfloat|null

Width of lines drawn for device routes on the map.

php
$attributes->mapLineWidth; // 2.5

mapLineOpacityfloat|null

Opacity (0–1) of map route lines.

php
$attributes->mapLineOpacity; // 0.8

webSelectZoominteger|null

Default zoom level when selecting a device.

php
$attributes->webSelectZoom; // 15

webMaxZoominteger|null

Maximum zoom level allowed in the web UI map.

php
$attributes->webMaxZoom; // 19

iconScalefloat|null

Scaling factor for map device icons.

php
$attributes->iconScale; // 1.2

Custom deep link for external navigation apps.

php
$attributes->navigationAppLink; // "geo:{lat},{lon}"

Display title for the external navigation app.

php
$attributes->navigationAppTitle; // "Google Maps"

speedUnitSpeedUnit

Speed measurement unit (e.g., knots, km/h, mph).

php
$attributes->speedUnit->value; // "kn"

distanceUnitDistanceUnit

Distance measurement unit for reports and map metrics.

php
$attributes->distanceUnit->label(); // "Kilometers"

altitudeUnitAltitudeUnit

Preferred unit for altitude readings.

php
$attributes->altitudeUnit->value; // "m"

volumeUnitVolumeUnit

Volume measurement unit (used in fuel level sensors, etc.).

php
$attributes->volumeUnit->value; // "l"

timezonestring

Default timezone for server and reports.

php
$attributes->timezone; // "Africa/Nairobi"

IMPORTANT

Null boolean attributes defaults to false.

Released under the MIT License.