Class: Toybox.Position.Location
- Inherits:
-
Toybox.Lang.Object
Overview
The Location object represents a specific position.
Location objects provide methods for retrieving position coordinates in various formats.
Instance Method Summary collapse
-
getProjectedLocation(angle as Lang.Numeric, distance as Lang.Numeric) as Position.Location
Get a Location object that is offset from the current position by a given distance and angle.
-
initialize(options as { :latitude as Lang.Numeric, :longitude as Lang.Numeric, :format as Lang.Symbol })
Constructor Create a Location based on a set of coordinates.
-
toDegrees() as [ Lang.Double, Lang.Double ]
Get a Location object's coordinates in degrees.
-
toGeoString(format as Position.CoordinateFormat) as Lang.String
Get a String representation a Location object's coordinates.
-
toRadians() as [ Lang.Double, Lang.Double ]
Get a location object's coordinates in radians.
Instance Method Details
getProjectedLocation(angle as Lang.Numeric, distance as Lang.Numeric) as Position.Location
Get a Location object that is offset from the current position by a given distance and angle.
initialize(options as { :latitude as Lang.Numeric, :longitude as Lang.Numeric, :format as Lang.Symbol })
Constructor Create a Location based on a set of coordinates.
toDegrees() as [ Lang.Double, Lang.Double ]
Get a Location object's coordinates in degrees.
toGeoString(format as Position.CoordinateFormat) as Lang.String
Get a String representation a Location object's coordinates.
toRadians() as [ Lang.Double, Lang.Double ]
Get a location object's coordinates in radians.