Android.Locations.Geocoder.GetFromLocationName Method
Returns an array of Addresses that are known 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", etc.

Syntax

[Android.Runtime.Register("getFromLocationName", "(Ljava/lang/String;IDDDD)Ljava/util/List;", "")]
public IList<Address> GetFromLocationName (string locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude)

Parameters

locationName
a user-supplied description of a location
maxResults
max number of addresses to return. Smaller numbers (1 to 5) are recommended
lowerLeftLatitude
the latitude of the lower left corner of the bounding box
lowerLeftLongitude
the longitude of the lower left corner of the bounding box
upperRightLatitude
the latitude of the upper right corner of the bounding box
upperRightLongitude
the longitude of the upper right corner of the bounding box

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif locationName is null
Java.Lang.IllegalArgumentExceptionif any latitude is less than -90 or greater than 90
Java.Lang.IllegalArgumentExceptionif any 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 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", etc.. The returned addresses will 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.

The query will block and returned values will 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