語言

Geocoder 建構函式

定義

多載

名稱 Description
Geocoder(Context)

構建一個局部化的地理編碼器。Locale#getDefault()

Geocoder(Context, Locale)

為指定地點構建一個局部化的地理編碼器。

Geocoder(Context)

構建一個局部化的地理編碼器。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

參數

context
Context

呼叫活動的上下文

屬性

備註

構建一個局部化的地理編碼器。Locale#getDefault()

Java 文件 android.location.Geocoder.Geocoder(android.content.Context)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Geocoder(Context, 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

參數

context
Context

呼叫活動的上下文

locale
Locale

查詢結果所需的地點

屬性

例外狀況

若 Locale 為零

備註

為指定地點構建一個局部化的地理編碼器。 請注意,地理編碼器的實作只會盡力在指定地點回傳結果,且無法保證回傳結果一定在特定地點。

Java 文件 android.location.Geocoder.Geocoder(android.content.Context, java.util.Locale)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於