Alexa Auto SDK  4.3
Public Member Functions | List of all members
aace::location::Location Class Reference

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 ()
 

Detailed Description

Represents a location object and provides accessor methods to its data

Constructor & Destructor Documentation

◆ Location() [1/3]

aace::location::Location::Location ( )

Default constructor

◆ Location() [2/3]

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

Parameters
[in]latitudeA location latitude
[in]longitudeA location longitude
[in]altitudeA location altitude in meters
[in]accuracyA location accuracy in meters
[in]timeThe time of measurement. Default is time of construction

◆ Location() [3/3]

aace::location::Location::Location ( const Location location)

Copy constructor for a Location object

Parameters
[in]locationA Location object to copy

Member Function Documentation

◆ isValid()

bool aace::location::Location::isValid ( )

Checks if the Location is valid

Returns
true if the location is valid, else false

◆ getLatitude()

double aace::location::Location::getLatitude ( )

Location accessor method for latitude

Returns
The latitude for the location

◆ getLongitude()

double aace::location::Location::getLongitude ( )

Location accessor method for longitude

Returns
The longitude for the location

◆ getAltitude()

double aace::location::Location::getAltitude ( )

Location accessor method for altitude

Returns
The altitude for the location

◆ getAccuracy()

double aace::location::Location::getAccuracy ( )

Location accessor method for accuracy

Returns
The accuracy for the location

◆ getTime()

std::chrono::system_clock::time_point aace::location::Location::getTime ( )

Location accessor method for time

Returns
std::chrono::system_clock::time_point The time of location measurement

◆ getTimeAsString()

std::string aace::location::Location::getTimeAsString ( )

Location accessor method for time

Returns
std::string The time of location measurement as a string

Alexa Auto SDK 4.3 - Copyright 2017-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0