SPMetaService

@interface SPMetaService : NSObject

The purpose of this class is to provide simplified APIs for fetching metadata from the Steerpath Meta Service. To use this class you need to have a Steerpath API access token and provide it to the app according to the instructions in SPAccountManager.h.

Need API access? Contact support@steerpath.com

  • Declaration

    Objective-C

    + (nonnull instancetype)sharedInstance;

    Swift

    class func sharedInstance() -> Self

    Return Value

    Singleton instance of SPMetaService

  • Unavailable

    call sharedInstance instead

    unavailable method, do not use

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Requests metadata for buildings.

    Declaration

    Objective-C

    - (void)getBuildings:(nullable SPQuery *)query
              completion:(nullable void (^)(NSArray<SPGeoJson *> *_Nullable,
                                            NSError *_Nullable))completionBlock;

    Swift

    func getBuildings(_ query: SPQuery?, completion completionBlock: (([SPGeoJson]?, Error?) -> Void)? = nil)

    Parameters

    query

    parameters for request.

    completionBlock

    callback called when operation finishes

  • Requests metadata for points of interest.

    Declaration

    Objective-C

    - (void)getPointsOfInterest:(nullable SPQuery *)query
                     completion:
                         (nullable void (^)(NSArray<SPGeoJson *> *_Nullable,
                                            NSError *_Nullable))completionBlock;

    Swift

    func getPointsOfInterest(_ query: SPQuery?, completion completionBlock: (([SPGeoJson]?, Error?) -> Void)? = nil)

    Parameters

    query

    parameters for request. See SPQuery.h for detailed documentation

    completionBlock

    callback called when operation finishes

  • Requests metadata for assets

    Declaration

    Objective-C

    - (void)getAssets:(nullable SPQuery *)query
           completion:(nullable void (^)(NSArray<SPGeoJson *> *_Nullable,
                                         NSError *_Nullable))completionBlock;

    Swift

    func getAssets(_ query: SPQuery?, completion completionBlock: (([SPGeoJson]?, Error?) -> Void)? = nil)

    Parameters

    query

    containing parameters for request. See SPQuery.h for detailed documentation

    completionBlock

    callback called when operation finishes