Server Data Dto Reference
The ThingsTelemetry\Traccar\Dto\ServerData represents the Traccar server configuration and system metadata. This class provides typed access to server attributes, map preferences, storage information, and other settings.
use ThingsTelemetry\Traccar\Facades\Server;
$info = Server::getInformation();id → integer
Traccar server entity identifier.
$id = $info->id; // 1attributes → ServerAttributesData
Typed server attributes & preferences (units, timezones, UI flags). Instance of ThingsTelemetry\Traccar\Dto\ServerAttributesData
$attributes = $info->attributes; // instance of ServerAttributesDataIMPORTANT
Please see Server Attributes Data for more details.
registration → boolean
Whether new user registration is enabled on Traccar server.
$info->registration; // truereadonly → boolean
If true, server configuration changes are read-only.
$info->readonly; // falsedeviceReadonly → boolean
Whether devices themselves are read-only (cannot be edited).
$info->deviceReadonly; // truemap → Map
Traccar map provider (enum). Instance of ThingsTelemetry\Traccar\Enums\Map
$info->map->value; // "osm"
$info->map->label(); // "OpenStreetMap"bingKey → string|null
Bing Maps API key (if configured).
$info->bingKey; // null or "BING_API_KEY"mapUrl → string|null
Custom tile base URL for maps (if set).
$info->mapUrl; // "https://tiles.example.com/{z}/{x}/{y}.png"overlayUrl → string|null
Optional overlay tiles URL for extra map layers.
$info->overlayUrl; // "https://overlays.example.com/{z}/{x}/{y}.png"latitude → float
Default map center latitude.
$info->latitude; // -1.2921longitude → float
Default map center longitude.
$info->longitude; // 36.8219zoom → integer
Default map zoom level.
$info->zoom; // 10forceSettings → boolean
If true, clients must use server-provided settings.
$info->forceSettings; // truecoordinateFormat → CoordinateFormat
Preferred coordinate display format (enum). Instance of ThingsTelemetry\Traccar\Enums\CoordinateFormat
$info->coordinateFormat->value; // "dd"
$info->coordinateFormat->label(); // "Decimal Degrees"limitCommands → boolean
Whether command execution is limited by server policies/permissions.
$info->limitCommands; // falsedisableReports → boolean
If true, reporting features are disabled on Traccar server.
$info->disableReports; // falsefixedEmail → boolean
If true, user email is fixed and cannot be changed.
$info->fixedEmail; // truepoiLayer → string|null
Points-of-interest layer identifier or URL (if any).
$info->poiLayer; // "poi-layer" or nullannouncement → string|null
Global announcement text to show to users.
$info->announcement; // "System maintenance on Sunday."emailEnabled → boolean
Whether email notifications/features are enabled.
$info->emailEnabled; // truegeocoderEnabled → boolean
Whether reverse geocoding (address lookup) is enabled.
$info->geocoderEnabled; // truetextEnabled → boolean
Whether text/SMS notifications are enabled.
$info->textEnabled; // falsestorageSpace → StorageInfo
Instance of ThingsTelemetry\Traccar\Support structured storage class.
$info->storageSpace->formatted();
// [
// [
// 'free' => '9.23 GB',
// 'total' => '58.93 GB',
// 'used' => '49.7 GB',
// 'free_percent' => '15.73%'
// ],
// ]newServer → boolean
Indicates the server is new.
$info->newServer; // falseopenIdEnabled → boolean
Whether OpenID authentication is enabled.
$info->openIdEnabled; // trueopenIdForce → boolean
If true, OpenID auth is enforced for sign-in.
$info->openIdForce; // falseversion → string
Traccar server version string.
$info->version; // "6.10.0"