---
title: "Get locations for multiple vehicles"
url: "https://developers.vzconnect.com/apis/vehicle-update-api-v1/versions/05da0a4a-83c3-4ea4-bf95-677b0523cf9a/operations/getVehicleLocationsBatch"
---

> Full API specification: https://developers.vzconnect.com/apis/vehicle-update-api-v1/versions/05da0a4a-83c3-4ea4-bf95-677b0523cf9a.md

# Get locations for multiple vehicles

`POST` `/rad/v1/vehicles/locations`

Operation ID: `getVehicleLocationsBatch`

Return location information for up to 100 vehicles within one call. The request body is a list of Vehicle Numbers within the referenced REVEAL account. The response may include individual status codes per vehicle.

## Request body (required)

Content types: `application/json`

## Responses

- `200` - The request was processed. The array has one item per distinct vehicle number in the request (duplicates are returned once). Each item has a per-vehicle StatusCode: 200 when the location is available, 404 when the vehicle is not found or has no location within the account's data plan. This response is also returned when none of the requested vehicles is found. An empty request array returns an empty array.
- `400` - Bad request — the request body is missing or contains more than 100 vehicle numbers.
- `401` - Unauthorized — authentication credentials are missing or invalid.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Vehicle Update API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /rad/v1/vehicles/locations:
    post:
      summary: Get locations for multiple vehicles
      description: Return location information for up to 100 vehicles within one call.
        The request body is a list of Vehicle Numbers within the referenced
        REVEAL account. The response may include individual status codes per
        vehicle.
      operationId: getVehicleLocationsBatch
      x-vzc-portal:
        webhook-note: true
      requestBody:
        description: Array of vehicle numbers to retrieve locations for.
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
            example:
              - "0018"
              - CB0021
              - "0046"
              - "0156"
              - "5184"
              - "56990"
        required: true
      responses:
        "200":
          description: "The request was processed. The array has one item per distinct
            vehicle number in the request (duplicates are returned once). Each
            item has a per-vehicle StatusCode: 200 when the location is
            available, 404 when the vehicle is not found or has no location
            within the account's data plan. This response is also returned when
            none of the requested vehicles is found. An empty request array
            returns an empty array."
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/ContentResourceByVehicleNumber[VehicleLocation]"
              example:
                - VehicleNumber: "0018"
                  StatusCode: 200
                  ContentResource:
                    Value:
                      Address:
                        AddressLine1: 8 Penrod Way
                        AddressLine2: ""
                        Locality: Heysham
                        AdministrativeArea: England
                        PostalCode: LA3 2UZ
                        Country: GBR
                      DeltaDistance: null
                      DeltaTime: null
                      DeviceTimeZoneOffset: null
                      DeviceTimeZoneUseDST: false
                      DisplayState: Idle
                      Direction: 0
                      Heading: West
                      DriverNumber: null
                      GeoFenceName: null
                      Latitude: 54.03659
                      Longitude: -2.901719
                      Speed: null
                      UpdateUTC: 2016-09-24T16:23:13
                      IsPrivate: false
                    StatusCode: 200
                - VehicleNumber: "1234"
                  StatusCode: 404
                  ContentResource: null
        "400":
          description: Bad request — the request body is missing or contains more than 100
            vehicle numbers.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
        "401":
          description: Unauthorized — authentication credentials are missing or invalid.
        "500":
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/rad/v1/vehicles/locations/?$
      tags:
        - Vehicle Update API
components:
  schemas:
    ContentResourceByVehicleNumber[VehicleLocation]:
      type: object
      description: Wrapper containing a vehicle location result with per-vehicle
        status code for batch responses.
      properties:
        VehicleNumber:
          type: string
          description: The vehicle number this result corresponds to.
        StatusCode:
          type: integer
          format: int32
          description: HTTP status code for this individual vehicle's result.
          enum:
            - 200
            - 204
            - 400
            - 401
            - 404
            - 500
        ContentResource:
          description: The result for this vehicle. Null when StatusCode is 404.
          nullable: true
          allOf:
            - $ref: "#/components/schemas/ContentResource[VehicleLocation]"
    ErrorResponse:
      type: object
      description: Error response. The body contains a single Message property.
      properties:
        Message:
          type: string
          description: A human-readable description of the error.
          nullable: true
    ContentResource[VehicleLocation]:
      type: object
      description: Content wrapper for a vehicle location value.
      properties:
        Value:
          $ref: "#/components/schemas/VehicleLocation"
        StatusCode:
          type: integer
          format: int32
          description: HTTP status code of the resource. 200 when it has content, 204 when
            it has none.
          enum:
            - 200
            - 204
            - 400
            - 401
            - 404
            - 500
    VehicleLocation:
      type: object
      description: Current GPS location and movement data for a vehicle.
      properties:
        Address:
          $ref: "#/components/schemas/InternationalAddress"
        DeltaDistance:
          type: number
          format: float
          description: Distance travelled since last update.
          example: 0
          default: 0
          nullable: true
        DeltaTime:
          type: integer
          format: int32
          description: Time elapsed since last update in seconds.
          example: null
          nullable: true
        DeviceTimeZoneOffset:
          type: integer
          format: int32
          description: Device timezone offset from UTC in minutes.
          example: -5
          nullable: true
        DeviceTimeZoneUseDST:
          type: boolean
          description: Whether the device timezone observes daylight saving time.
          example: true
        DisplayState:
          type: string
          description: Human-readable vehicle state (e.g., Moving, Stopped, Idle).
          example: Idle
        Direction:
          type: integer
          format: int32
          description: Direction of travel in degrees (0-360).
          example: 0
        Heading:
          type: string
          description: "Compass heading as a name: North, North East, East, South East,
            South, South West, West, North West, or Unknown."
          example: North
          enum:
            - North
            - North East
            - East
            - South East
            - South
            - South West
            - West
            - North West
            - Unknown
        DriverNumber:
          type: string
          description: Number of the driver currently assigned to this vehicle.
          example: null
          nullable: true
        GeoFenceName:
          type: string
          description: Name of the geofence the vehicle is currently within, if any.
          example: null
          nullable: true
        Latitude:
          type: number
          format: double
          description: GPS latitude coordinate.
          example: 41.397001
        Longitude:
          type: number
          format: double
          description: GPS longitude coordinate.
          example: -81.45617
        Speed:
          type: number
          format: double
          description: Current speed of the vehicle.
          example: 0
          nullable: true
        UpdateUTC:
          type: string
          format: date-time
          description: UTC timestamp of the last GPS update.
          example: 2016-07-14T15:52:04
        IsPrivate:
          type: boolean
          description: Whether the vehicle is currently in private mode. When true,
            Address and GeoFenceName are null and Latitude and Longitude are 0.
          example: false
    InternationalAddress:
      type: object
      description: Structured international address.
      properties:
        AddressLine1:
          type: string
          description: Primary address line (street number and name).
          example: 31500 Bainbridge Rd
          nullable: true
        AddressLine2:
          type: string
          description: Secondary address line (suite, unit, etc.).
          example: ""
          nullable: true
        Locality:
          type: string
          description: City or town.
          example: Solon
          nullable: true
        AdministrativeArea:
          type: string
          description: State, province, or region.
          example: OH
          nullable: true
        PostalCode:
          type: string
          description: Postal or ZIP code.
          example: "44139"
          nullable: true
        Country:
          type: string
          description: Country name or code.
          example: USA
          nullable: true
```
