MapsIndoors iOS SDK V3
|
#include <MPLocation.h>
Instance Methods | |
(nullable instancetype) | - initWithPoint:andName: |
(nullable instancetype) | - initWithLocation: |
(nullable MPLocationField *) | - getFieldForKey: |
(nullable MPPoint *) | - getPoint |
(nullable MPLocationProperty *) | - getProperty: |
(nullable GMSCoordinateBounds *) | - getCoordinateBounds |
(nullable NSObject *) | - getLiveValueForKey:domainType: |
(nullable MPLiveUpdate *) | - getLiveUpdateForDomainType: |
Properties | |
NSString * | locationId |
NSString * | type |
NSNumber< Optional > * | activeFrom |
NSNumber< Optional > * | activeTo |
NSString< Optional > * | venue |
NSString< Optional > * | building |
NSString< Optional > * | roomId |
NSString< Optional > * | externalId |
NSString< Optional > * | descr |
NSDictionary< NSString *, MPLocationField * >< Optional, MPLocationField > * | fields |
NSArray< NSString * > * | aliases |
NSString * | name |
NSNumber * | floor |
NSString * | floorName |
NSMutableDictionary * | categories |
NSMutableDictionary * | properties |
MPPoint< Ignore > * | geometry |
GMSMarker * | marker |
UIImage * | image |
NSString * | imageURL |
NSNumber * | sourceId |
UIImage * | icon |
NSURL * | iconUrl |
MPLocationBaseType | baseType |
NSArray< NSString * > * | restrictions |
BOOL | isIndoors |
BOOL | isBookable |
This class holds the data for a single location and a marker to display the data on a map.
- (nullable GMSCoordinateBounds *) getCoordinateBounds |
Get coordinate bounds for the location object
- (nullable MPLocationField *) getFieldForKey: | (nonnull NSString *) | key |
Get data for custom property with key, disregarding casing of key.
key | identifier for custom property. |
- (nullable MPLiveUpdate *) getLiveUpdateForDomainType: | (nonnull NSString *) | domainType |
Get a live update based on a known domain type
- (nullable NSObject *) getLiveValueForKey: | (nonnull NSString *) | key | |
domainType: | (nonnull NSString *) | domainType |
Get a live property value based on a known key and domain type
- (nullable MPPoint *) getPoint |
Get the point holding coordinates for the location object
- (nullable MPLocationProperty *) getProperty: | (nullable NSString *) | propertyType |
Get location property of the given type identifier
- (nullable instancetype) initWithLocation: | (nullable MPLocation *) | location |
Location constructor.
location | Make a new instance from an existing location. |
- (nullable instancetype) initWithPoint: | (nullable MPPoint *) | point | |
andName: | (nullable NSString *) | name |
Location constructor.
point | The geographic point. |
name | The name of the location. |
Implemented in MPPositionIndicator.
|
readnonatomicstrong |
Active from timestamp
|
readnonatomicstrong |
Active to timestamp
|
readnonatomicstrong |
Get aliases for location.
|
readnonatomicassign |
Location base type.
|
readnonatomicstrong |
Location building property. This string correlates with MPBuilding.administrativeId
.
|
readnonatomicstrong |
The categories for this location, as a dictionary.
|
readnonatomicstrong |
Location description property.
|
readnonatomicstrong |
Location external id property.
|
readnonatomicstrong |
Custom properties associated with the location object. Keys are case sensitive. For case-insensitive access to custom properties use
|
readnonatomicstrong |
If the location resides on a specific floor level, this property is set. This value correlates with MPFloor.zIndex
.
|
readnonatomicstrong |
If the location resides on a specific floor level, the name of that floor level can be retrieved here.
|
readnonatomicstrong |
The data type (equals "Feature"). Geometry as a Lat/Long point.
|
readnonatomicstrong |
Location icon. If nil, the location will either get an icon from the settings configured for the type of location or a default appearance that is configurable through MPMapControl
.
|
readnonatomicstrong |
Location icon as a URL. If icon is originally set as a UIImage, this property will be ignored.
|
readnonatomicstrong |
Location image.
|
readnonatomicstrong |
URL for image associated with this MPLocation.
|
readnonatomicassign |
Determines if the MPLocation is bookable using the MPBookingService.
|
readnonatomicassign |
Will return YES if location is indoors and belongs to a building, otherwise NO.
|
readnonatomicstrong |
Location id property.
|
readnonatomicstrong |
Marker property used to display on map.
|
readnonatomicstrong |
Location name.
|
readnonatomicstrong |
Dictionary of location properties. The keys 'image' and 'description' will always be present, and possibly others, such as 'address', 'contact', 'openinghours' and '_tags' or your own data structure.
|
readnonatomicstrong |
If set, location is restricted to given set of app user roles.
|
readnonatomicstrong |
Location room id property.
|
readnonatomicstrong |
Location Source ID. Some implementations have different location sources, and this id is a reference to the location source that created the location. The source ID will remain the same throughout the running application session, but the source ID is not expected to remain the same across sessions.
|
readnonatomicstrong |
Location type property. This string correlates with MPType.name
.
|
readnonatomicstrong |
Location venue property. This string correlates with MPVenue.venueKey
.