List location of company assets (based on proximity)
get/v1/freight_visibility/asset_association
Request
- Base URLhttps://api.gomotive.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
company_idinteger
Specify the ID of the company as assigned by Motive.
dot_idinteger
Specify the ID provided by the Department of Transportation, if you do not have the company_id.
latnumber float
Specify the latitude of the location from where you want to check the nearby available vehicles.
lonnumber float
Specify the longitude of the location from where you are checking the nearby vehicles for service.
Response
200
Example response
{
"data": {
"asset_details": [
{
"name": "abc",
"status": "active",
"type": "dry_box",
"make": "Noble",
"model": "Luxgen",
"year": "2019",
"asset_gateway": {
"id": 4034,
"identifier": "ATU-51V-NSZ",
"active": true
},
"asset_id": 4411,
"located_at": "2019-07-01T06:06:24Z",
"lat": 10.25275,
"lon": 10.46834,
"distance_origin": 1546.23,
"description": "current location 1546.23 km from provided location"
}
],
"company_id": 35676,
"dot_ids": [
"3pnjv4a89a"
],
"integration_status": "enabled"
},
"pagination": {
"per_page": 100,
"page_no": 1,
"total": 2
}
}Changes
No recorded changes to this operation across all 1 revision of this API.