@@ -28,17 +28,52 @@ export interface LatLng {
2828 * An immutable class representing the device location in Navigation SDK.
2929 */
3030export interface Location {
31- /** Value representing the latitude of the location in degrees. */
31+ /**
32+ * Value representing the latitude of the location in degrees.
33+ */
3234 lat : number ;
33- /** Value representing the longitude of the location in degrees. */
35+
36+ /**
37+ * Value representing the longitude of the location in degrees.
38+ */
3439 lng : number ;
35- /** Number in meters that represents the altitude of the location. */
36- altitude : number ;
40+
41+ /**
42+ * Number in meters that represents the altitude of the location.
43+ */
44+ altitude ?: number ;
45+
46+ /**
47+ * The bearing at the time of this location in degrees.
48+ * Bearing is the horizontal direction of travel of this device and is
49+ * unrelated to the device orientation.
50+ */
51+ bearing ?: number ;
52+
53+ /**
54+ * The speed at the time of this location in meters per second
55+ */
3756 speed : number ;
38- /** Number in meters that represents the horizontal accuracy of the location. */
57+
58+ /**
59+ * Number in meters that represents the horizontal accuracy
60+ * of the location.
61+ */
3962 accuracy : number ;
40- /** Number in meters that represents the vertical accuracy of the location. */
41- verticalAccuracy : number ;
42- /** Time when the location was sourced represented as ellapse milliseconds since Unix Epoch. */
63+
64+ /**
65+ * Number in meters that represents the vertical accuracy of the location.
66+ */
67+ verticalAccuracy ?: number ;
68+
69+ /**
70+ * The name of the provider associated with this location. Android only.
71+ */
72+ provider ?: string ;
73+
74+ /**
75+ * Time when the location was sourced represented as
76+ * ellapse milliseconds since Unix Epoch.
77+ */
4378 time : number ;
4479}
0 commit comments