Click or drag to resize

IOperationServiceSearchStreets Method

Searches streets and returns limited number of results.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll)
Syntax
C#
IReadOnlyList<IStreet> SearchStreets(
	string query,
	SearchType searchType = SearchType.Prefix,
	StreetFields fields = StreetFields.Name,
	IReadOnlyList<ICity> cities = null
)

Parameters

query
Type: SystemString
Search query.
searchType (Optional)
Type: Resto.Front.Api.Data.SearchSearchType
Type of search. Default type: Prefix
fields (Optional)
Type: Resto.Front.Api.Data.SearchStreetFields
Street's fields for search. Default is Name.
cities (Optional)
Type: System.Collections.GenericIReadOnlyListICity
Optional filter for searching streets only in certain cities. Default is null, which means searching without filtering by city (in all citities).

Return Value

Type: IReadOnlyListIStreet
See Also