Get the last location of the assetNumber

Extracts the last recorded location of a specified asset.

Notes:

  • A location may be not found (204 No Content) if the Asset has not yet reported a location, or if it has but the last time it reported was outside the DataPlan of the account

Sample request:

GET /ast/v1/assets/A10001/location
get
https://api.us.vzconnect.com/ast/v1/assets/{assetNumber}/location

Path Parameters

assetNumberstringrequired

The AssetNumber for which to get the last location.

Example:A10001

Response

If the request was successful

AssetGeoLocation

Designed for Asset last Location requests
/v1/assets/{assetnumber}/location

GeofenceNamestring

Geofence is a place configured within a REVEAL account to easily identify particular locations. An empty string if the GPS plot does not occur within a Geofence.

Example:VZC

Addressobject

Address contains the global standards for address components

Show Child Parameters
DeviceTimeZoneOffsetinteger | null(int32)

The GPS device’s current time zone compared to UTC

Example:12

DeviceTimeZoneUseDSTboolean

If the REVEAL account is set to acknowledge Daylight Savings Time then this value will return as TRUE. REVEAL accounts in the United States are automatically defaulted to True.

Example:false

Latitudenumber(double)

The latitude of the last location

Example:-41

Longitudenumber(double)

The longitude of the last location

Example:162

UpdateUTCstring(date-time)

The date and time stamp when the GPS plot was received (YEAR-MONTH-DAY T HOURS-MINUTES-SECONDS)

Example:2020-05-07T19:56:06

 

ContentResource[AssetGeoLocation]

object

A data transfer object wrapper used to distinguish an Asset resource from that Asset’s Location resource.

Valueobject

The last location of the Asset. null unless Status is 200.

Show Child Parameters
Statusinteger(int32)

The status code of the Location. 200 indicates a last location was successfully found for the Asset; 404 indicates no last location was found (within the account Data Plan); 500 indicates something else went wrong.

Allowed values:200404500

Example

Address

object

Address contains the global standards for address components

AddressLine1string

Location specific identification such as a house number

Example:2 Victoria Street, Christchurch Central City, Christchurch 8013, New Zealand

AddressLine2string

Additional information to identify location such as an apartment number

Localitystring

‘City’ is presented to the customer as ‘Locality’

Example:Christchurch

AdministrativeAreastring

‘State’ is presented to the customer as ‘AdministrativeArea’

Example:Canterbury

PostalCodestring

Example:8013

Countrystring

Example:NZL

Example

AssetContentResource[AssetGeoLocation]

object
AssetNumberstringrequired

The AssetNumber called in the request, returned within the response.

Example:A10001

ContentResourceobject

The last location lookup result. null unless Status is 200.

Show Child Parameters
Statusinteger(int32)

The status code indicating whether the AssetNumber could be found. 200 if found; 400 if the AssetNumber is invalid (empty, whitespace only, or longer than 96 characters); 404 if no Asset with that AssetNumber exists in the account.

Allowed values:200400404

Example

AssetGeoLocation

object

Designed for Asset last Location requests
/v1/assets/{assetnumber}/location

GeofenceNamestring

Geofence is a place configured within a REVEAL account to easily identify particular locations. An empty string if the GPS plot does not occur within a Geofence.

Example:VZC

Addressobject

Address contains the global standards for address components

Show Child Parameters
DeviceTimeZoneOffsetinteger(int32)

The GPS device’s current time zone compared to UTC

Example:12

DeviceTimeZoneUseDSTboolean

If the REVEAL account is set to acknowledge Daylight Savings Time then this value will return as TRUE. REVEAL accounts in the United States are automatically defaulted to True.

Latitudenumber(double)

The latitude of the last location

Example:-41

Longitudenumber(double)

The longitude of the last location

Example:162

UpdateUTCstring(date-time)

The date and time stamp when the GPS plot was received (YEAR-MONTH-DAY T HOURS-MINUTES-SECONDS)

Example:2020-05-07T19:56:06

Example