Freigeben über


CLGeocoder.GeocodeAddressAsync Methode

Definition

Überlädt

GeocodeAddressAsync(String, CLRegion, NSLocale)
GeocodeAddressAsync(String, CLRegion)

Fordern Sie einen Breiten-/Längengrad-Standort von einer für Menschen lesbaren Adresse und Region an.

GeocodeAddressAsync(String)
GeocodeAddressAsync(NSDictionary)

Entwickler sollten diese veraltete Methode nicht verwenden. Entwickler sollten stattdessen "GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)" verwenden.

GeocodeAddressAsync(String, CLRegion, NSLocale)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodeAddressAsync (string addressString, CoreLocation.CLRegion region, Foundation.NSLocale locale);
abstract member GeocodeAddressAsync : string * CoreLocation.CLRegion * Foundation.NSLocale -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodeAddressAsync : string * CoreLocation.CLRegion * Foundation.NSLocale -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>

Parameter

addressString
String
region
CLRegion
locale
NSLocale

Gibt zurück

Attribute

Gilt für:

GeocodeAddressAsync(String, CLRegion)

Fordern Sie einen Breiten-/Längengrad-Standort von einer für Menschen lesbaren Adresse und Region an.

public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodeAddressAsync (string addressString, CoreLocation.CLRegion region);
abstract member GeocodeAddressAsync : string * CoreLocation.CLRegion -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodeAddressAsync : string * CoreLocation.CLRegion -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>

Parameter

addressString
String
region
CLRegion

Gibt zurück

Ein Task, der den asynchronen Geocodierungsvorgang darstellt.

Gilt für:

GeocodeAddressAsync(String)

public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodeAddressAsync (string addressString);
abstract member GeocodeAddressAsync : string -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodeAddressAsync : string -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>

Parameter

addressString
String

Gibt zurück

Eine Aufgabe, die den asynchronen GeocodeAddress-Vorgang darstellt. Der Wert des TResult-Parameters ist ein CLGeocodeCompletionHandler.

Hinweise

var addressString = "2 Park Plaza, Boston, MA, USA 02116";
var geocoder = new CLGeocoder();
var taskCoding = geocoder.GeocodeAddressAsync(addressString);
taskCoding.ContinueWith((addresses) => {
	foreach(var address in addresses.Result)
	{
		Console.WriteLine(address);
	}
});              

Gilt für:

GeocodeAddressAsync(NSDictionary)

Entwickler sollten diese veraltete Methode nicht verwenden. Entwickler sollten stattdessen "GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)" verwenden.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.")]
public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodeAddressAsync (Foundation.NSDictionary addressDictionary);
abstract member GeocodeAddressAsync : Foundation.NSDictionary -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodeAddressAsync : Foundation.NSDictionary -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>

Parameter

addressDictionary
NSDictionary

Zu übermittelnde Adressbuchwörterbuch

Gibt zurück

Eine Aufgabe, die den asynchronen GeocodeAddress-Vorgang darstellt. Der Wert des TResult-Parameters ist ein CLGeocodeCompletionHandler.

Attribute

Gilt für: