Represents WGS84 coordinates with double precision.
More...
#import <SYPositioning.h>
|
double | latitude |
| The latitude, as measured in degrees, representing north-south coordinate (y-axis on a map). The latitude must be in the range [-90, 90]. Values outside this range will be clamped. More...
|
|
double | longitude |
| The longitude, as measured in degrees, representing east-west coordinate (x-axis on a map). The longitude must be in the range [-180, 180]. More...
|
|
double | altitude |
| The altitude of the SYGeoCoordinates measured in meters above sea-level. Geocoordinates with positive altitudes represent points above the plane of the map, while negative altitudes are below the plane of the map. Map objects with these coordinates will be displayed accordingly. Valid values are in the range [-10000.0, 10000.0]. Please note that the result might be an uninitialized double value as altitude is currently not supported. You can use the hasValidAltitude function to determine whether the altitude value is valid or not. More...
|
|
Represents WGS84 coordinates with double precision.
◆ initWithLatitude:longitude:
- (nonnull instancetype) initWithLatitude: |
|
(double) |
latitude |
longitude: |
|
(double) |
longitude |
|
|
| |
Initializes a SYGeoCoordinates instance with specified latitude and longitude values.
◆ initWithLatitude:longitude:altitude:
- (nonnull instancetype) initWithLatitude: |
|
(double) |
latitude |
longitude: |
|
(double) |
longitude |
altitude: |
|
(double) |
altitude |
|
|
| |
Initializes a SYGeoCoordinates instance with specified values for the initial latitude, longitude and altitude.
◆ isValid
Validates latitude and longitude values.
◆ hasValidAltitude
- (BOOL) hasValidAltitude |
|
|
|
◆ distanceToGeoCoordinate:
- (SYDistance) distanceToGeoCoordinate: |
|
(nonnull SYGeoCoordinate *) |
coordinate |
|
◆ latitude
The latitude, as measured in degrees, representing north-south coordinate (y-axis on a map). The latitude must be in the range [-90, 90]. Values outside this range will be clamped.
◆ longitude
The longitude, as measured in degrees, representing east-west coordinate (x-axis on a map). The longitude must be in the range [-180, 180].
◆ altitude
The altitude of the SYGeoCoordinates measured in meters above sea-level. Geocoordinates with positive altitudes represent points above the plane of the map, while negative altitudes are below the plane of the map. Map objects with these coordinates will be displayed accordingly. Valid values are in the range [-10000.0, 10000.0]. Please note that the result might be an uninitialized double value as altitude is currently not supported. You can use the hasValidAltitude function to determine whether the altitude value is valid or not.
The documentation for this class was generated from the following file: