CLGeocoder.GeocodeAddressAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
GeocodeAddressAsync(String, CLRegion, NSLocale) | |
GeocodeAddressAsync(String, CLRegion) |
Solicite um local de latitude/longitude de um endereço legível humano e uma região. |
GeocodeAddressAsync(String) | |
GeocodeAddressAsync(NSDictionary) |
Os desenvolvedores não devem usar esse método preterido. Os desenvolvedores devem usar 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' em vez disso. |
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
Retornos
- Atributos
Aplica-se a
GeocodeAddressAsync(String, CLRegion)
Solicite um local de latitude/longitude de um endereço legível humano e uma região.
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
Retornos
Uma Tarefa que representa a operação de geocodificação assíncrona.
Aplica-se 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
Retornos
Uma tarefa que representa a operação GeocodeAddress assíncrona. O valor do parâmetro TResult é um CLGeocodeCompletionHandler.
Comentários
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);
}
});
Aplica-se a
GeocodeAddressAsync(NSDictionary)
Os desenvolvedores não devem usar esse método preterido. Os desenvolvedores devem usar 'GeocodeAddress (string, CLRegion, NSLocale, CLGeocodeCompletionHandler)' em vez disso.
[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
Dicionário addressbook a ser enviada
Retornos
Uma tarefa que representa a operação GeocodeAddress assíncrona. O valor do parâmetro TResult é um CLGeocodeCompletionHandler.
- Atributos