OYMLocationResult Class Reference

Inherits from NSObject
Conforms to OYMJsonProtocol
Declared in OYMLocationResult.h
OYMLocationResult.m

Overview

This class provides the user position with further useful information.

  longitude

WGS84 Longitude

@property (readonly) double longitude

Declared In

OYMLocationResult.h

  latitude

WGS84 Latitude

@property (readonly) double latitude

Declared In

OYMLocationResult.h

  used

Number of iBeacons used

@property (readonly) int used

Declared In

OYMLocationResult.h

  accuracy

Position accuracy (meters)

@property (readonly) double accuracy

Declared In

OYMLocationResult.h

  found

List including the longitude, latitude and accuracy of each iBeacon in sight

@property (readonly) NSArray *found

Declared In

OYMLocationResult.h

  floor

Floor ID

@property (readonly) NSString *floor

Declared In

OYMLocationResult.h

  floorNumber

Floor number

@property (readonly) int floorNumber

Declared In

OYMLocationResult.h

  type

Positioning type: kOYMLocationTypeNo, kOYMLocationTypeIbeacon, kOYMLocationTypeGps

@property (readonly) int type

Declared In

OYMLocationResult.h

  buildingName

Building name

@property (readonly) NSString *buildingName

Declared In

OYMLocationResult.h

  building

Building ID

@property (readonly) NSString *building

Declared In

OYMLocationResult.h

  geofences

Number of geofences crossed

@property (readonly) int geofences

Declared In

OYMLocationResult.h

– initWithLongitude:andLatitude:andUsed:andAccuracy:andFound:andFloorId:andFloorNumber:andType:andBuildingName:andBuildingId:andGeofences:

Constructor with the given data, according to positioning type source.

- (instancetype)initWithLongitude:(double)_longitude andLatitude:(double)_latitude andUsed:(int)_used andAccuracy:(double)_accuracy andFound:(NSArray *)_found andFloorId:(NSString *)_floor andFloorNumber:(int)_floorNumber andType:(int)_type andBuildingName:(NSString *)_buildingName andBuildingId:(NSString *)_building andGeofences:(int)_geofences

Parameters

_longitude

WGS84 Longitude

_latitude

WGS84 Latitude

_used

No. of Beacons/satellites used

_accuracy

Accuracy (meters)

_found

List including Longitude, Latitude and Accuracy of each Beacon in the range

_floor

Floor ID

_floorNumber

Floor number

_type

Position type: #kOYMLocationTypeNo, #kOYMLocationTypeIbeacon, or #kOYMLocationTypeGps

_buildingName

Building name if #kOYMLocationTypeIbeacon, nil otherwise

_building

Building ID

geofences

Number of geofences added

Return Value

Return the OYMLocationResult Object.

Declared In

OYMLocationResult.h

– initWithCLLocation:andGeofences:

Constructor with the given data, according to positioning type source.

- (instancetype)initWithCLLocation:(CLLocation *)_location andGeofences:(int)_geofences

Parameters

_location

CLLocation object

_geofences

Number of geofences added

Return Value

Return the OYMLocationResult Object.

Declared In

OYMLocationResult.h