CLGeocoder.GeocodeAddressAsync Method

Definition

Overloads

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

Request a latitude/longitude location from a human readable address and region.

GeocodeAddressAsync(String)
GeocodeAddressAsync(NSDictionary)

Developers should not use this deprecated method. Developers should use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.

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[]>

Parameters

addressString
String
region
CLRegion
locale
NSLocale

Returns

Attributes

Applies to

GeocodeAddressAsync(String, CLRegion)

Request a latitude/longitude location from a human readable address and region.

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[]>

Parameters

addressString
String
region
CLRegion

Returns

A Task that represents the asynchronous geocoding operation.

Applies to

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[]>

Parameters

addressString
String

Returns

A task that represents the asynchronous GeocodeAddress operation. The value of the TResult parameter is a CLGeocodeCompletionHandler.

Remarks

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);
	}
});              

Applies to

GeocodeAddressAsync(NSDictionary)

Developers should not use this deprecated method. Developers should use 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' instead.

[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[]>

Parameters

addressDictionary
NSDictionary

Addressbook dictionary to submit

Returns

A task that represents the asynchronous GeocodeAddress operation. The value of the TResult parameter is a CLGeocodeCompletionHandler.

Attributes

Applies to