Inherits from NSObject
Declared in IALocationManager.h

Overview

A IALocation object represents the location data generated by a IALocationManager object. This object incorporates the geographical coordinates along with values indicating the accuracy of the measurements and when those measurements were made. This class also reports information about the heading in which the device is moving.

Typically, you use a IALocationManager object to create instances of this class based on the last known location of the user’s device. You can create instances yourself, however, if you want to cache custom location data or get the distance between two points.

This class is designed to be used as is and should not be subclassed.

Tasks

Initializing a Location Object

Location Attributes

Optional attributes

Properties

floor

The logical floor of the building.

@property (nonatomic, readwrite, nullable) IAFloor *floor

Discussion

This property is included as CLLocation’s CLFloor is private interface. Thus it may be deprecated in future.

Declared In

IALocationManager.h

location

CoreLocation compatible location information. (read-only)

@property (nonatomic, readonly, nullable) CLLocation *location

Discussion

When running in the simulator, IALocationManager provides faked values. You must run your application on an iOS-based device to get the actual location of the device.

Declared In

IALocationManager.h

region

Region this location was obtained from.

@property (nonatomic, readwrite, nullable) IARegion *region

Declared In

IALocationManager.h

Class Methods

locationWithCLLocation:

Initializes and returns a location object with specified CoreLocation information.

+ (nonnull IALocation *)locationWithCLLocation:(nullable CLLocation *)location

Parameters

location

CLLocation object. Might be initialized in code or from CLLocationManager.

Declared In

IALocationManager.h

locationWithFloorPlanId:

Initializes and returns a location object with specified floor plan id.

+ (nonnull IALocation *)locationWithFloorPlanId:(nullable NSString *)floorPlanId

Parameters

floorPlanId

Identifier of the floor plan.

Declared In

IALocationManager.h