Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: 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));
}
See Also