API Reference - pims.vehicle.destinations
Info: Stellantis Mobile SDK is not publicly available.
Component:
🏁
Send Navigation
PSA
Tutorial:
check-out
Send Navigation.
SDK Version:
v2.3
API Available since:
v2.0
API Last update:
v2.0
Plateforme Compatibility: PSA
Security:
- Authentication: Authentication is required.
Operations:
This api allows retrieving the list of navigations stored in vehicle cache. Navigation are stored when the vehicle was not reachable when sending a navigation.
Input Parameters Object | |||||
---|---|---|---|---|---|
No input params. |
Output Data Object | ||||
---|---|---|---|---|
Data name | Description | Type | Unit/Values | Example |
destinations | Destinations information. |
Array of Objects |
/ |
|
destinations
.vin |
Vehicle Identification Number. |
String |
|
VR1AB12C3D45678909
|
destinations
.userid |
User id value. |
String |
|
user@provider.tld
|
destinations
.location |
Location of the destination. |
Object |
/ |
|
destinations
.location .latitude |
latitude value |
Double |
|
48.77232
|
destinations
.location .longitude |
longitude value |
Double |
|
2.2151043
|
destinations
.location .address |
address value |
String |
|
Rte de Gisy, 78140 Vélizy-Villacoublay
|
Error | ||
---|---|---|
No errors |
Code Example
1
2
3
4
5
6
7
pims.get("pims.vehicle.destinations"
/* no params */
) { message -> when (message["status"] as? String) {
"SUCCEEDED" -> { } // handle succeeded status
"FAILED" -> { } // handle failed status
} }
1
2
3
4
5
6
7
pims.get(api: "pims.vehicle.destinations"
/* no params */
) { (message) in
if message["status"] == "SUCCEEDED" { } // handle succeeded status
else if message["status"] == "FAILED" { } // handle failed status
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// representation of the `succeeded` dictionary object message as JSON
{
"transactionId": "953cfefb-bc72",
"status": "SUCCEEDED",
"result": {
"destinations": [
{
"vin": "VR1AB12C3D45678909",
"userid": "user@provider.tld",
"location": {
"latitude": 48.77232,
"longitude": 2.2151043,
"address": "Rte de Gisy, 78140 Vélizy-Villacoublay"
}
}, /* Other destinations objects */ ]
}
}
false