Type Definitions

The following type definitions are available globally.

  • The type of block callback that will get executed when a directions request is completed using the method requestDirections:completion:

    Declaration

    Objective-C

    typedef void (^SITDirectionsCompletion)(SITRoute *_Nullable, NSError *_Nullable)

    Swift

    typealias SITDirectionsCompletion = (SITRoute?, Error?) -> Void

    Parameters

    route

    the calculated route

    error

    any error that may occur during the route calculation

  • SITBounds represents a rectangular box containing the geographic coordinates of the corners of the region

    Declaration

    Objective-C

    typedef struct SITBounds SITBounds
  • Type used to represent the x or y axis value of a cartesian coordinate in meters under a reference frame

    Declaration

    Objective-C

    typedef double SITCartesianMeters

    Swift

    typealias SITCartesianMeters = Double
  • The type of block that will be called after the method - fetchCategoriesWithCompletion: is executed

    Declaration

    Objective-C

    typedef void (^SITMapViewLoadCompletion)(SITMapViewController *_Nullable,
                                             NSError *_Nullable)

    Swift

    typealias SITMapViewLoadCompletion = (SITMapViewController?, Error?) -> Void

    Parameters

    mapViewController

    Object to interact with the mapView. This object is returned only if the load is succesful

    error

    Error that causess the mapView to not load properly. If the mapView was successfully load this error will be nil