Instance Method

initWithContentsOfURL:

Initializes and returns a directions request object using the specified URL.

Declaration

- (instancetype)initWithContentsOfURL:(NSURL *)url;

Parameters

url

The URL provided to your app.

Return Value

An initialized directions request object.

Discussion

You should use the isDirectionsRequestURL: method to verify that the specified URL is of the correct format before calling this method to initialize the object.

See Also

Creating a Directions Request Object

+ isDirectionsRequestURL:

Returns a Boolean indicating whether the specified URL contains a directions request.