PWCustomLocation Class Reference
Inherits from | NSObject |
---|---|
Conforms to | PWMapPoint |
Declared in | PWCustomLocation.h |
coordinate
Center latitude and longitude of this annotation.
@property (nonatomic) CLLocationCoordinate2D coordinate
Declared In
PWCustomLocation.h
identifier
The identifier of this annotation.
@property (nonatomic) NSInteger identifier
Declared In
PWCustomLocation.h
floorID
The MaaS identifier of the floor the custom location is on.
@property (nonatomic) NSInteger floorID
Declared In
PWCustomLocation.h
buildingID
The MaaS identifier of the building the custom location is in.
@property (nonatomic) NSInteger buildingID
Declared In
PWCustomLocation.h
title
The name of the this annotation.
@property (nonatomic, copy, nullable) NSString *title
Declared In
PWCustomLocation.h
– initWithCoordinate:identifier:floorId:buildingId:title:
Instantiates a PWCustomLocation
object with the given properties.
- (instancetype __nullable)initWithCoordinate:(CLLocationCoordinate2D)coordinate identifier:(NSInteger)identifier floorId:(NSInteger)floorId buildingId:(NSInteger)buildingId title:(NSString *__nullable)title
Parameters
coordinate |
The lat, long position of the custom location |
---|---|
identifier |
Integer to help the developer identify the custom location |
floorId |
The MaaS identifier of the floor the custom location is on |
buildingId |
The MaaS identifier of the building the custom location is in |
title |
The name of the custom location |
Return Value
Returns a PWCustomLocation
object, or nil if the given coordinate is invalid.
Declared In
PWCustomLocation.h