![]() |
Alexa Auto SDK
2.3.1
|
Public Member Functions | |
| Location () | |
| Location (double latitude, double longitude, double altitude=UNDEFINED, double accuracy=UNDEFINED, std::chrono::system_clock::time_point time=std::chrono::system_clock::now()) | |
| Location (const Location &location) | |
| bool | isValid () |
| double | getLatitude () |
| double | getLongitude () |
| double | getAltitude () |
| double | getAccuracy () |
| std::chrono::system_clock::time_point | getTime () |
| std::string | getTimeAsString () |
Represents a location object and provides accessor methods to its data
| aace::location::Location::Location | ( | ) |
Default constructor
| aace::location::Location::Location | ( | double | latitude, |
| double | longitude, | ||
| double | altitude = UNDEFINED, |
||
| double | accuracy = UNDEFINED, |
||
| std::chrono::system_clock::time_point | time = std::chrono::system_clock::now() |
||
| ) |
Location constructor
| [in] | latitude | A location latitude |
| [in] | longitude | A location longitude |
| [in] | altitude | A location altitude in meters |
| [in] | accuracy | A location accuracy in meters |
| [in] | time | The time of measurement. Default is time of construction |
| aace::location::Location::Location | ( | const Location & | location | ) |
| bool aace::location::Location::isValid | ( | ) |
Checks if the Location is valid
true if the location is valid, else false | double aace::location::Location::getLatitude | ( | ) |
Location accessor method for latitude
| double aace::location::Location::getLongitude | ( | ) |
Location accessor method for longitude
| double aace::location::Location::getAltitude | ( | ) |
Location accessor method for altitude
| double aace::location::Location::getAccuracy | ( | ) |
Location accessor method for accuracy
| std::chrono::system_clock::time_point aace::location::Location::getTime | ( | ) |
Location accessor method for time
std::chrono::system_clock::time_point The time of location measurement | std::string aace::location::Location::getTimeAsString | ( | ) |
Location accessor method for time
std::string The time of location measurement as a string Alexa Auto SDK 2.3.1 - Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0