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

Properties

latitude

Latitude value of the NMGeolocation object in degrees.

@property (nonatomic, assign) double latitude

Discussion

Latitude value of the NMGeolocation object in degrees.

Declared In

NMGeolocation.h

longitude

Longtitude value of the NMGeolocation object in degrees.

@property (nonatomic, assign) double longitude

Discussion

Longtitude value of the NMGeolocation object in degrees.

Declared In

NMGeolocation.h

timezone

Timezone value of the latest location of the device.

@property (nonatomic, assign) double timezone

Discussion

Timezone value of the latest location of the device.

Declared In

NMGeolocation.h

Instance Methods

initWithCLLocation:

Initializes the newly allocated NMGeolocation object with the given CLLocation object.

- (id)initWithCLLocation:(CLLocation *)location

Parameters

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.h

initWithLatitude:andLongitude:

Initializes the newly allocated NMGeolocation object with the given latitude and longitude coordinates.

- (id)initWithLatitude:(double)latitude andLongitude:(double)longitude

Parameters

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.h

setLatitude:

Sets the latitude value for the NMGeolocation object. It must be within the range of (-90.0, 90.0).

- (void)setLatitude:(double)latitude

Parameters

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.h

setLongitude:

Sets the longitude value for the NMGeolocation object. It must be within the range of (-180.0, 180.0).

- (void)setLongitude:(double)longitude

Parameters

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