SPDirectionsRequest
Objective-C
@interface SPDirectionsRequest : NSObject
Swift
class 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
startLocationstarting location for directions
endLocationslist of one or more destinations to find directions
Return Value
new instance of SPDirectionsRequest
SPDirectionsRequest Class Reference