Skip to main content
A newer version of this page is available. .

BingSearchDataProvider.Search(BingAddress, String, GeoPoint, SearchBoundingBox) Method

Searches for locations that correspond to the specified address around the specified geographical point in the defined region in accordance with the local culture.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Map

Declaration

public void Search(
    BingAddress address,
    string culture,
    GeoPoint searchAnchorPoint,
    SearchBoundingBox boundingBox
)

Parameters

Name Type Description
address BingAddress

A BingAddress object that specifies the address to search.

culture String

A String value that specifies the local culture.

searchAnchorPoint GeoPoint

A GeoPoint object that specifies the geographical point, around which it is necessary to search for a keyword.

boundingBox SearchBoundingBox

A SearchBoundingBox object that specifies the boundary of the search area.

Remarks

The following example searches locations that correspond to the parameters (the address and search area) passed to the Search method:

private void btnSearch_Click(object sender, EventArgs e) {
    SearchProvider.Search(address: new BingAddress { CountryRegion = "United States", AdminDistrict = "WA", PostalCode = "98052" },
                          culture: "en-US",
                          searchAnchorPoint: new GeoPoint(47.640120461583138, -122.12971039116383),
                          boundingBox: new SearchBoundingBox(-122.137353, 47.64398, -122.122067, 47.63625));
}

Also, see the following example that uses the BingSearchDataProvider.Search(System.String) overload to search locations by keyword:

View Example

See Also