Skip to main content
All docs
V24.2

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

AzureGeocodeDataProvider.RequestLocationInformation(GeoPoint) Method

Sends a request to obtain information about the specified location.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public void RequestLocationInformation(
    GeoPoint location
)

#Parameters

Name Type Description
location GeoPoint

A GeoPoint object that identifies the location.

#Remarks

The following example searches for a geographical point according to the specified coordinates:

using DevExpress.XtraMap;
// ...
const string key = "your key";
// ...
private void Form1_Load(object sender, EventArgs e) {
  AzureGeocodeDataProvider geocodeProvider = new AzureGeocodeDataProvider {
      AzureKey = key
  };
  geocodeProvider.RequestLocationInformation(new GeoPoint(40.730610, -73.935242));
  // Create a layer.
  InformationLayer informationLayer = new InformationLayer();
  informationLayer.DataProvider = geocodeProvider;
  // Add the created layer to the collection.
  map.Layers.Add(informationLayer);
}
See Also