Location

interface Location(source)

Location API.

Provides access to the last known location of a connected vehicle.

All methods in this interface may throw:

Throws

if the access token is invalid or expired (401)

if the API key lacks required permissions (403)

if the request is malformed or the VIN is not found (400/404)

if the Volvo API returns a server error (5xx)

Functions

Link copied to clipboard
abstract suspend fun getVehicleLocation(vin: String, requestOptions: RequestOptions? = null): LocationResponse

Get the last known location of the vehicle.