ISPosition Class Reference

Inherits from NSObject
Declared in ISPosition.h

Overview

Class used to represent a position in our map api.

  coordinates

Position coordinates (in meters).

@property (nonatomic, readwrite) CGPoint coordinates

Declared In

ISPosition.h

  mapId

Related map identifier.

@property (nonatomic, readwrite) int mapId

Declared In

ISPosition.h

  x

X coordinate.

@property (nonatomic, readonly) double x

Declared In

ISPosition.h

  y

Y coordinate.

@property (nonatomic, readonly) double y

Declared In

ISPosition.h

– initWithX:andY:andMapId:

Main constructor.

- (instancetype)initWithX:(double)x andY:(double)y andMapId:(int)mapId

Parameters

x

X double coordinate.

y

Y double coordinate.

mapId

Map identifier to use.

Declared In

ISPosition.h

– initWithISPosition:

Constructor.

- (instancetype)initWithISPosition:(ISPosition *)position

Parameters

position

ISPosition to use for instantiate the new one.

Declared In

ISPosition.h

+ ISPositionWithX:andY:andMapId:

Static main constructor.

+ (instancetype)ISPositionWithX:(double)x andY:(double)y andMapId:(int)mapId

Parameters

x

X double coordinate.

y

Y double coordinate.

mapId

Map identifier to use.

Declared In

ISPosition.h

– setValuesWithPosition:

copy values from position, without new allocation.

- (void)setValuesWithPosition:(ISPosition *)position

Parameters

position

ISPosition to use for update current values.

Declared In

ISPosition.h

– offsetWithOffset:

Method used to offset the ISPosition.

- (void)offsetWithOffset:(CGPoint)offset

Parameters

offset

CGPoint use to offset the position on X/Y axis.

Declared In

ISPosition.h