Toybox::Position::Info
The Location.Info class contains all information necessary for the Location. It can be passed on the update or it can be retrieved on demand. The fields in this class may return null so you should null check a value before using it.
Instance Attribute Details
(Number) accuracy : 位置情報の正確さ。null は無い。
(Float) altitude : Elevation in meters (mean sea level).
Barometer / GPS のデータの信頼性がある方で算出される。GPSが動いていない場合は気圧計から算出される。
- Returns : (Float)
- Since : 1.0.0
(Float) heading : True north referenced heading in radians.
This metric provides the direction of travel when moving. When stopped, it provides compass orientation, if supported by the device.
- Returns : (Float)
- Since : 1.0.0
(Location) position
Lat/Lon. If no GPS is available or is between GPS fix intervals (typically 1 second), position is propagated (i.e. dead-reckoned) using the last known heading and last known speed. After a short period of time, position will cease to be propagated to prevent excessive accumulation of position errors.
- Returns : (Location)
- Since : 1.0.0
(Float) speed : 水平方向のスピード[m/s]
- Returns : (Float)
- Since : 1.0.0
(Moment) when
GPS time stamp of fix
- Returns : (Moment)
- Since : 1.0.0
最終更新:2016年03月06日 20:49