For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Unit Locations

Update live map location data for one or more units.

PATCH https://api.sonorancad.com/v2/emergency/servers/{serverId}/unit-locations

Rate limit: 12 requests per minute Authenticated v2 endpoints are rate limited per API key rather than per IP address.

For frequent live-map streaming, prefer the websocket unitLocation method, which supports updates every 200ms minimum after a single websocket authentication.

Queue and broadcast one or more unit location updates.

Path Parameters

Name
Type
Description

serverId

integer

Configured Sonoran CAD server ID.

Request Body

Each update can target a unit with communityUserId by default, or with roblox or discord as alternatives. For Sonoran.lua, use updateUnitLocationsV2(...) for the HTTP v2 endpoint.

{
  "updates": [
    {
      "communityUserId": "player-1234",
      "location": "Mission Row",
      "coordinates": {
        "x": 441.2,
        "y": -981.9,
        "z": 30.7,
        "w": 90.0
      },
      "peerId": "peer-1",
      "vehicle": {
        "model": "police3",
        "headingOffset": 0
      }
    }
  ]
}

Example Request

Response

Successful requests return application/json.

Last updated

Was this helpful?