SPDirectionsRequest

@interface SPDirectionsRequest : NSObject

Object that is passed to SPDirectionsManager for fetching directions between GPS points.

  • Recommended constructor for SPDirectionsRequest objects.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocation:(nonnull SPLocation *)startLocation
                                destinations:
                                    (nonnull NSArray<SPLocation *> *)endLocations;

    Swift

    init(location startLocation: SPLocation, destinations endLocations: [SPLocation])

    Parameters

    startLocation

    starting location for directions

    endLocations

    list of one or more destinations to find directions

    Return Value

    new instance of SPDirectionsRequest