CLGeocoder.GeocodeAddressAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
GeocodeAddressAsync(String, CLRegion, NSLocale) | |
GeocodeAddressAsync(String, CLRegion) |
Solicite una ubicación de latitud y longitud desde una dirección y región legibles. |
GeocodeAddressAsync(String) | |
GeocodeAddressAsync(NSDictionary) |
Los desarrolladores no deben usar este método en desuso. Los desarrolladores deben usar 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' en su lugar. |
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[]>
Parámetros
- addressString
- String
- region
- CLRegion
- locale
- NSLocale
Devoluciones
- Atributos
Se aplica a
GeocodeAddressAsync(String, CLRegion)
Solicite una ubicación de latitud y longitud desde una dirección y región legibles.
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[]>
Parámetros
- addressString
- String
- region
- CLRegion
Devoluciones
Tarea que representa la operación de geocodificación asincrónica.
Se aplica a
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[]>
Parámetros
- addressString
- String
Devoluciones
Tarea que representa la operación Asincrónica GeocodeAddress. El valor del parámetro TResult es .CLGeocodeCompletionHandler
Comentarios
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);
}
});
Se aplica a
GeocodeAddressAsync(NSDictionary)
Los desarrolladores no deben usar este método en desuso. Los desarrolladores deben usar 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' en su lugar.
[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[]>
Parámetros
- addressDictionary
- NSDictionary
Diccionario de libreta de direcciones que se va a enviar
Devoluciones
Tarea que representa la operación Asincrónica GeocodeAddress. El valor del parámetro TResult es .CLGeocodeCompletionHandler
- Atributos