Android.Locations.Geocoder.GetFromLocation Method
Returns an array of Addresses that are known to describe the area immediately surrounding the given latitude and longitude.

Syntax

[Android.Runtime.Register("getFromLocation", "(DDI)Ljava/util/List;", "")]
public IList<Address> GetFromLocation (double latitude, double longitude, int maxResults)

Parameters

latitude
the latitude a point for the search
longitude
the longitude a point for the search
maxResults
max number of addresses to return. Smaller numbers (1 to 5) are recommended

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif latitude is less than -90 or greater than 90
Java.Lang.IllegalArgumentExceptionif longitude is less than -180 or greater than 180
Java.IO.IOExceptionif the network is unavailable or any other I/O problem occurs

Remarks

Returns an array of Addresses that are known to describe the area immediately surrounding the given latitude and longitude. The returned addresses will be localized for the locale provided to this class's constructor.

The returned values may be obtained by means of a network lookup. The results are a best guess and are not guaranteed to be meaningful or correct. It may be useful to call this method from a thread separate from your primary UI thread.

[Android Documentation]

Requirements

Namespace: Android.Locations
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1