LocalLocationFinder.FindLocalLocationsAsync Method

Definition

Gets information about businesses and places that meet the specified search criteria.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

public:
 static IAsyncOperation<LocalLocationFinderResult ^> ^ FindLocalLocationsAsync(Platform::String ^ searchTerm, Geocircle ^ searchArea, Platform::String ^ localCategory, unsigned int maxResults);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LocalLocationFinderResult> FindLocalLocationsAsync(winrt::hstring const& searchTerm, Geocircle const& searchArea, winrt::hstring const& localCategory, uint32_t const& maxResults);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LocalLocationFinderResult> FindLocalLocationsAsync(string searchTerm, Geocircle searchArea, string localCategory, uint maxResults);
function findLocalLocationsAsync(searchTerm, searchArea, localCategory, maxResults)
Public Shared Function FindLocalLocationsAsync (searchTerm As String, searchArea As Geocircle, localCategory As String, maxResults As UInteger) As IAsyncOperation(Of LocalLocationFinderResult)

Parameters

searchTerm
String

Platform::String

winrt::hstring

The query text of the search; that which you're searching for.

searchArea
Geocircle

The geographic area to be included in the search.

localCategory
String

Platform::String

winrt::hstring

The search categories used to limit search results. We recommend using one or more LocalCategories properties to specify localCategory. Use a semicolon "; " separator to specify more than one category.

maxResults
UInt32

unsigned int

uint32_t

The maximum number of results to return from the search.

Returns

The relevant businesses or places that meet the specified search criteria, of type LocalLocationFinderResult.

Attributes

Applies to