Search
SearchControl is a search box over places, ways, points of interest, itineraries, zones and collections. A pick moves the map onto the result and marks it.
Search reads the Data API through the map's client, so that client needs a session token beside its key (authentication).
targets picks the branches and their order, limit the results per branch. isConfined binds whether the search keeps to the visible area.
By default a pick frames the result and draws the map's search highlight. Hand onSelect to take the pick over:
SearchEngine is the same search with no view. Feed it the query and read its state:
Hand the engine to SearchControl(map:engine:) to draw your engine in the standard box.