MPLocationsProvider

@interface MPLocationsProvider : NSObject <MPLocationsProvider>

Locations provider that defines a delegate and a method to initiate fetching of locations from the provider.

  • Locations provider delegate.

    Declaration

    Objective-C

    @property (readwrite, atomic) id<MPLocationsProviderDelegate> delegate;

    Swift

    weak var delegate: MPLocationsProviderDelegate! { get set }
  • Undocumented

    Declaration

    Objective-C

    @interface MPLocationsProvider : NSObject <MPLocationsProvider>
  • Method to initiate fetching of all locations from the provider in a specific translation. - parameter: solutionId The MapsIndoors solution ID. - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages.

    Declaration

    Objective-C

    - (void)getLocationsAsync:(NSString *)solutionId language:(NSString *)language;

    Swift

    func getLocationsAsync(_ solutionId: String!, language: String!)

    Parameters

    solutionId

    The MapsIndoors solution ID.

    language

    The language code. Must be one of the MapsIndoors solutions supported content languages.

  • Method to initiate fetching of all locations from the provider in a specific translation. - parameter: solutionId The MapsIndoors solution ID. - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages. - parameter: handler The handler callback block. Contains the MPLocation object (can be nil) and an NSError object (can be nil).

    Declaration

    Objective-C

    - (void)getLocationsAsync:(NSString *)solutionId
                     language:(NSString *)language
            completionHandler:(mpLocationListHandlerBlockType)handler;

    Swift

    func getLocationsAsync(_ solutionId: String!, language: String!, completionHandler handler: mpLocationListHandlerBlockType!)

    Parameters

    solutionId

    The MapsIndoors solution ID.

    language

    The language code. Must be one of the MapsIndoors solutions supported content languages.

    handler

    The handler callback block. Contains the MPLocation object (can be nil) and an NSError object (can be nil).

  • Method to query a unique location from the provider based on an id. - parameter: solutionId The MapsIndoors solution ID. - parameter: locationId The MapsIndoors location ID. - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages.

    Declaration

    Objective-C

    - (void)getLocationDetailsAsync:(NSString *)solutionId
                             withId:(NSString *)locationId
                           language:(NSString *)language;

    Swift

    func getLocationDetailsAsync(_ solutionId: String!, withId locationId: String!, language: String!)

    Parameters

    solutionId

    The MapsIndoors solution ID.

    locationId

    The MapsIndoors location ID.

    language

    The language code. Must be one of the MapsIndoors solutions supported content languages.

  • Method to query a unique location from the provider based on an id. - parameter: solutionId The MapsIndoors solution ID. - parameter: locationId The MapsIndoors location ID. - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages. - parameter: handler The handler callback block. Contains the MPLocation object (can be nil) and an NSError object (can be nil).

    Declaration

    Objective-C

    - (void)getLocationDetailsAsync:(NSString *)solutionId
                             withId:(NSString *)locationId
                           language:(NSString *)language
                  completionHandler:(mpLocationDetailsHandlerBlockType)handler;

    Swift

    func getLocationDetailsAsync(_ solutionId: String!, withId locationId: String!, language: String!, completionHandler handler: mpLocationDetailsHandlerBlockType!)

    Parameters

    solutionId

    The MapsIndoors solution ID.

    locationId

    The MapsIndoors location ID.

    language

    The language code. Must be one of the MapsIndoors solutions supported content languages.

    handler

    The handler callback block. Contains the MPLocation object (can be nil) and an NSError object (can be nil).

  • Method to query a subset of locations from the provider. - parameter: locationQuery Locations query object. Must at least define your MapsIndoors solution ID (MPLocationQuery.solutionId) - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages.

    Declaration

    Objective-C

    - (void)getLocationsUsingQueryAsync:(MPLocationQuery *)locationQuery
                               language:(NSString *)language;

    Swift

    func getLocationsUsingQueryAsync(_ locationQuery: MPLocationQuery!, language: String!)

    Parameters

    locationQuery

    Locations query object. Must at least define your MapsIndoors solution ID (MPLocationQuery.solutionId)

    language

    The language code. Must be one of the MapsIndoors solutions supported content languages.

  • Method to query a subset of locations from the provider. - parameter: locationQuery Locations query object. Must at least define your MapsIndoors solution ID (MPLocationQuery.solutionId) - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages. - parameter: handler The handler callback block. Contains the MPLocationDataset object (can be nil) and an NSError object (can be nil).

    Declaration

    Objective-C

    - (void)getLocationsUsingQueryAsync:(MPLocationQuery *)locationQuery
                               language:(NSString *)language
                      completionHandler:(mpLocationListHandlerBlockType)handler;

    Swift

    func getLocationsUsingQueryAsync(_ locationQuery: MPLocationQuery!, language: String!, completionHandler handler: mpLocationListHandlerBlockType!)

    Parameters

    locationQuery

    Locations query object. Must at least define your MapsIndoors solution ID (MPLocationQuery.solutionId)

    language

    The language code. Must be one of the MapsIndoors solutions supported content languages.

    handler

    The handler callback block. Contains the MPLocationDataset object (can be nil) and an NSError object (can be nil).