NMGeolocation Class Reference
| Inherits from | NSObject |
| Declared in | NMGeolocation.h NMGeolocation.m |
Overview
NMGeolocation class is used to create geographical objects that hold coordinate values. The instances of this class is generally operated in internal of Netmera iOS SDK. You can add location coordinates into the NMContent objects and benefit from them on the search queries.
Tasks
-
latitudeLatitude value of the NMGeolocation object in degrees.
property -
longitudeLongtitude value of the NMGeolocation object in degrees.
property -
timezoneTimezone value of the latest location of the device.
property -
– initWithLatitude:andLongitude:Initializes the newly allocated NMGeolocation object with the given latitude and longitude coordinates.
-
– initWithCLLocation:Initializes the newly allocated NMGeolocation object with the given CLLocation object.
-
– setLatitude:Sets the latitude value for the NMGeolocation object. It must be within the range of (-90.0, 90.0).
-
– setLongitude:Sets the longitude value for the NMGeolocation object. It must be within the range of (-180.0, 180.0).
Properties
latitude
Latitude value of the NMGeolocation object in degrees.
@property (nonatomic, assign) double latitudeDiscussion
Latitude value of the NMGeolocation object in degrees.
Declared In
NMGeolocation.hInstance Methods
initWithCLLocation:
Initializes the newly allocated NMGeolocation object with the given CLLocation object.
- (id)initWithCLLocation:(CLLocation *)locationParameters
- location
A CLLocation object that contains the relevant location information.
Return Value
An initialized NMGeolocation object.
Discussion
Initializes the newly allocated NMGeolocation object with the given CLLocation object.
Declared In
NMGeolocation.hinitWithLatitude:andLongitude:
Initializes the newly allocated NMGeolocation object with the given latitude and longitude coordinates.
- (id)initWithLatitude:(double)latitude andLongitude:(double)longitudeParameters
- latitude
Latitude in degrees. It must be within the range of (-90, 90).
- longitude
Longitude in degrees. It must be within the range of (-180, 180).
Return Value
An initialized NMGeolocation object.
Discussion
Initializes the newly allocated NMGeolocation object with the given latitude and longitude coordinates.
Declared In
NMGeolocation.hsetLatitude:
Sets the latitude value for the NMGeolocation object. It must be within the range of (-90.0, 90.0).
- (void)setLatitude:(double)latitudeParameters
- latitude
Latitude in degrees.
Discussion
Sets the latitude value for the NMGeolocation object. It must be within the range of (-90.0, 90.0).
Declared In
NMGeolocation.hsetLongitude:
Sets the longitude value for the NMGeolocation object. It must be within the range of (-180.0, 180.0).
- (void)setLongitude:(double)longitudeParameters
- longitude
Longitude in degrees.
Discussion
Sets the longitude value for the NMGeolocation object. It must be within the range of (-180.0, 180.0).
Declared In
NMGeolocation.h