Język

Geocoder.GetFromLocationNameAsync Method

Definition

Overloads

Name Description
GetFromLocationNameAsync(String, Int32)

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

GetFromLocationNameAsync(String, Int32, Geocoder+IGeocodeListener)

Provides an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

GetFromLocationNameAsync(String, Int32, Double, Double, Double, Double)

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

GetFromLocationNameAsync(String, Int32, Double, Double, Double, Double, Geocoder+IGeocodeListener)

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

GetFromLocationNameAsync(String, Int32)

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

public System.Threading.Tasks.Task<System.Collections.Generic.IList<Android.Locations.Address>?> GetFromLocationNameAsync(string locationName, int maxResults);
member this.GetFromLocationNameAsync : string * int -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Android.Locations.Address>>

Parameters

locationName
String

a user-supplied description of a location. This value cannot be null.

maxResults
Int32

max number of results to return. Smaller numbers (1 to 5) are recommended. Value is 1 or greater

Returns

a list of Address objects. Returns null or empty list if no matches were found or there is no backend service available.

Remarks

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth. The returned addresses should be localized for the locale provided to this class's constructor.

Warning: Geocoding services may provide no guarantees on availability or accuracy. Results are a best guess, and are not guaranteed to be meaningful or correct. Do NOT use this API for any safety-critical or regulatory compliance purposes.

Android reference for android.location.Geocoder.getFromLocationName.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetFromLocationNameAsync(String, Int32, Geocoder+IGeocodeListener)

Provides an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

public System.Threading.Tasks.Task GetFromLocationNameAsync(string locationName, int maxResults, Android.Locations.Geocoder.IGeocodeListener listener);
member this.GetFromLocationNameAsync : string * int * Android.Locations.Geocoder.IGeocodeListener -> System.Threading.Tasks.Task

Parameters

locationName
String

a user-supplied description of a location. This value cannot be null.

maxResults
Int32

max number of results to return. Smaller numbers (1 to 5) are recommended. Value is 1 or greater

listener
Geocoder.IGeocodeListener

a listener for receiving results. This value cannot be null.

Returns

Remarks

Provides an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth. The returned addresses should be localized for the locale provided to this class's constructor.

Android reference for android.location.Geocoder.getFromLocationName.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetFromLocationNameAsync(String, Int32, Double, Double, Double, Double)

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

public System.Threading.Tasks.Task<System.Collections.Generic.IList<Android.Locations.Address>?> GetFromLocationNameAsync(string locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude);
member this.GetFromLocationNameAsync : string * int * double * double * double * double -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Android.Locations.Address>>

Parameters

locationName
String

a user-supplied description of a location. This value cannot be null.

maxResults
Int32

max number of addresses to return. Smaller numbers (1 to 5) are recommended. Value is 1 or greater

lowerLeftLatitude
Double

the latitude of the lower left corner of the bounding box. Value is between -90.0f and 90.0f inclusive

lowerLeftLongitude
Double

the longitude of the lower left corner of the bounding box. Value is between -180.0f and 180.0f inclusive

upperRightLatitude
Double

the latitude of the upper right corner of the bounding box. Value is between -90.0f and 90.0f inclusive

upperRightLongitude
Double

the longitude of the upper right corner of the bounding box. Value is between -180.0f and 180.0f inclusive

Returns

a list of Address objects. Returns null or empty list if no matches were found or there is no backend service available.

Remarks

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth. The returned addresses should be localized for the locale provided to this class's constructor.

You may specify a bounding box for the search results by including the latitude and longitude of the lower left point and upper right point of the box.

Warning: Geocoding services may provide no guarantees on availability or accuracy. Results are a best guess, and are not guaranteed to be meaningful or correct. Do NOT use this API for any safety-critical or regulatory compliance purposes.

Android reference for android.location.Geocoder.getFromLocationName.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetFromLocationNameAsync(String, Int32, Double, Double, Double, Double, Geocoder+IGeocodeListener)

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth.

public System.Threading.Tasks.Task GetFromLocationNameAsync(string locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude, Android.Locations.Geocoder.IGeocodeListener listener);
member this.GetFromLocationNameAsync : string * int * double * double * double * double * Android.Locations.Geocoder.IGeocodeListener -> System.Threading.Tasks.Task

Parameters

locationName
String

a user-supplied description of a location. This value cannot be null.

maxResults
Int32

max number of addresses to return. Smaller numbers (1 to 5) are recommended. Value is 1 or greater

lowerLeftLatitude
Double

the latitude of the lower left corner of the bounding box. Value is between -90.0f and 90.0f inclusive

lowerLeftLongitude
Double

the longitude of the lower left corner of the bounding box. Value is between -180.0f and 180.0f inclusive

upperRightLatitude
Double

the latitude of the upper right corner of the bounding box. Value is between -90.0f and 90.0f inclusive

upperRightLongitude
Double

the longitude of the upper right corner of the bounding box. Value is between -180.0f and 180.0f inclusive

listener
Geocoder.IGeocodeListener

a listener for receiving results. This value cannot be null.

Returns

Remarks

Returns an array of Addresses that attempt to describe the named location, which may be a place name such as "Dalvik, Iceland", an address such as "1600 Amphitheatre Parkway, Mountain View, CA", an airport code such as "SFO", and so forth. The returned addresses should be localized for the locale provided to this class's constructor.

Android reference for android.location.Geocoder.getFromLocationName.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to