MazdaApiLib/MazdaApiClient.cs
/// <summary>
/// Find the current Lattitude and Longitude of the vehicle asynchronously.
/// </summary>
/// <param name="internalVin">The internal vehicle identity number for the vehicle which can be found with calls to methods that return vehicles</param>
/// <returns>A VehicleLocation object containing the last known location of the vehicle and a timestamp</returns>
Find the current Lattitude and Longitude of the vehicle asynchronously.
Find the current Lattitude and Longitude of the vehicle asynchronously .
public async Task<VehicleLocation> FindVehicleLocationAsync(string internalVin)
        {
            FindVehicleLocationResponse location = await _controller.FindVehicleLocationAsync(internalVin);
            return new VehicleLocation { AcquisitionDatetime = location.AcquisitionDatetime, Latitude = Math.Abs(location.Latitude) * (location.LatitudeFlag ? -1 : 1), Longitude = Math.Abs(location.Longitude) * (location.LongitudeFlag ? 1 : -1)};
        }
public async Task < VehicleLocation > FindVehicleLocationAsync ( string internalVin ) { FindVehicleLocationResponse location = await _controller . FindVehicleLocationAsync ( internalVin ) ; return new VehicleLocation { AcquisitionDatetime = location . AcquisitionDatetime , Latitude = Math . Abs ( location . Latitude ) * ( location . LatitudeFlag ? - 1 : 1 ) , Longitude = Math . Abs ( location . Longitude ) * ( location . LongitudeFlag ? 1 : - 1 ) } ; }
Find the current Lattitude and Longitude of the vehicle asynchronously.
Find the current Lattitude and Longitude of the vehicle asynchronously .
A VehicleLocation object containing the last known location of the vehicle and a timestamp
A VehicleLocation object containing the last known location of the vehicle and a timestamp
internalVin
string
The internal vehicle identity number for the vehicle which can be found with calls to methods that return vehicles
The internal vehicle identity number for the vehicle which can be found with calls to methods that return vehicles