IAFloorPlan

Objective-C


@interface IAFloorPlan : NSObject

Swift

class IAFloorPlan : NSObject

IAFloorPlan represents floor plan data received from service.

Floor plan information

  • Identifier of the floor plan.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *floorPlanId;

    Swift

    var floorPlanId: String? { get }
  • Name of the floor plan.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *name;

    Swift

    var name: String? { get }
  • Image URL of the floor plan.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSURL *imageUrl;

    Swift

    var imageUrl: URL? { get }
  • Width of the image bitmap in pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger width;

    Swift

    var width: UInt { get }
  • Height of the image bitmap in pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger height;

    Swift

    var height: UInt { get }
  • Conversion multiplier from pixels to meters.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float pixelToMeterConversion;

    Swift

    var pixelToMeterConversion: Float { get }
  • Conversion multiplier from meters to pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float meterToPixelConversion;

    Swift

    var meterToPixelConversion: Float { get }
  • Width of floor plan in meters.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float widthMeters;

    Swift

    var widthMeters: Float { get }
  • Height of floor plan in meters.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float heightMeters;

    Swift

    var heightMeters: Float { get }
  • Object containing the floor of floor plan. If the object is nil, the floor is unspecified.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) IAFloor *floor;

    Swift

    var floor: IAFloor? { get }
  • The approximate bearing of left side of floor plan in degrees east of true north.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double bearing;

    Swift

    var bearing: Double { get }
  • Corresponding WGS84 coordinate of center of floor plan bitmap placed on the surface of Earth.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D center;

    Swift

    var center: CLLocationCoordinate2D { get }
  • Corresponding WGS84 coordinate of top left of floor plan bitmap placed on the surface of Earth.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D topLeft;

    Swift

    var topLeft: CLLocationCoordinate2D { get }
  • Corresponding WGS84 coordinate of top right of floor plan bitmap placed on the surface of Earth.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D topRight;

    Swift

    var topRight: CLLocationCoordinate2D { get }
  • Corresponding WGS84 coordinate of bottom left of floor plan bitmap placed on the surface of Earth.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D bottomLeft;

    Swift

    var bottomLeft: CLLocationCoordinate2D { get }
  • Corresponding WGS84 coordinate of bottom right of floor plan bitmap placed on the surface of Earth.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D bottomRight;

    Swift

    var bottomRight: CLLocationCoordinate2D { get }
  • Converts coordinate to corresponding point.

    Declaration

    Objective-C

    - (CGPoint)coordinateToPoint:(CLLocationCoordinate2D)coord;

    Swift

    func coordinate(toPoint coord: CLLocationCoordinate2D) -> CGPoint

    Parameters

    coord

    WGS84 coordinate

    Return Value

    corresponding pixel point on floor plan bitmap

  • Converts point to corresponding coordinate.

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)pointToCoordinate:(CGPoint)point;

    Swift

    func point(toCoordinate point: CGPoint) -> CLLocationCoordinate2D

    Parameters

    point

    pixel point of floor plan bitmap

    Return Value

    corresponding WGS84 coordinate