BingSearchDataProvider.Search(BingAddress, String, GeoPoint, SearchBoundingBox) Method
In This Article
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 | Bing |
A Bing |
culture | String | A String value that specifies the local culture. |
search |
Geo |
A Geo |
bounding |
Search |
A Search |
#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