GeocodingExtensions.GetPlacemarksAsync(IGeocoding, Location) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve potential placemarks for a given location specified by Location.
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Placemark ^> ^> ^ GetPlacemarksAsync(Microsoft::Maui::Devices::Sensors::IGeocoding ^ geocoding, Microsoft::Maui::Devices::Sensors::Location ^ location);
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Placemark>> GetPlacemarksAsync (this Microsoft.Maui.Devices.Sensors.IGeocoding geocoding, Microsoft.Maui.Devices.Sensors.Location location);
static member GetPlacemarksAsync : Microsoft.Maui.Devices.Sensors.IGeocoding * Microsoft.Maui.Devices.Sensors.Location -> System.Threading.Tasks.Task<seq<Microsoft.Maui.Devices.Sensors.Placemark>>
<Extension()>
Public Function GetPlacemarksAsync (geocoding As IGeocoding, location As Location) As Task(Of IEnumerable(Of Placemark))
Parameters
- geocoding
- IGeocoding
The object this method is invoked on.
Returns
List of Placemark that best match the coordinates or null
if no placemarks are found.
Exceptions
Thrown when location
is null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.