다음을 통해 공유


Geocoder Constructors

Definition

Overloads

Geocoder(Context)

Constructs a Geocoder localized for Locale#getDefault().

Geocoder(Context, Locale)

Constructs a Geocoder localized for the given locale.

Geocoder(Context)

Constructs a Geocoder localized for Locale#getDefault().

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Geocoder (Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Locations.Geocoder : Android.Content.Context -> Android.Locations.Geocoder

Parameters

context
Context

the Context of the calling Activity

Attributes

Remarks

Constructs a Geocoder localized for Locale#getDefault().

Java documentation for android.location.Geocoder.Geocoder(android.content.Context).

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

Geocoder(Context, Locale)

Constructs a Geocoder localized for the given locale.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/Locale;)V", "")]
public Geocoder (Android.Content.Context context, Java.Util.Locale locale);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/Locale;)V", "")>]
new Android.Locations.Geocoder : Android.Content.Context * Java.Util.Locale -> Android.Locations.Geocoder

Parameters

context
Context

the Context of the calling Activity

locale
Locale

the desired Locale for the query results

Attributes

Exceptions

if Locale is null

Remarks

Constructs a Geocoder localized for the given locale. Note that geocoder implementations will only make a best effort to return results in the given locale, and there is no guarantee that returned results will be in the specific locale.

Java documentation for android.location.Geocoder.Geocoder(android.content.Context, java.util.Locale).

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