Initializer

init(request:)

Initializes and returns a search object configured with the specified parameters.

Declaration

init(request: MKLocalSearch.Request)

Parameters

request

The search request information. This parameter must not be nil.

Return Value

An initialized search object.

Discussion

This method stores a copy of the object in the request parameter. So any changes you make to your request object after calling this method are ignored.

See Also

Creating a Search Request

class MKLocalSearch.Request

The parameters to use when searching for points of interest on the map.

struct MKLocalSearch.ResultType

Options that indicate types of search results.

Beta