Places SDK for Android は、既存の Place Autocomplete。 既存の Security Command Center を Place Autocomplete は Place Autocomplete 次の変更を行います。
新しい料金モデルを採用している。すべての API の料金については、 Places SDK for Android (新規)。
まず、このメソッドを呼び出して、
Places.initializeWithNewPlacesApiEnabled()
メソッドを呼び出します。Places API サービスの選択について詳しくは、 Google Cloud プロジェクトを設定します。FindAutocompletePredictionsRequest
クラスには、以下を可能にする新しいメソッドが含まれています。- 結果のフォーマットを決めるのに使用する地域コードを設定します。
- 予測オフセットを設定します。予測オフセットは、予測 なります。
詳細については、次をご覧ください: 予測入力(新)。
セッションの最後に、次のいずれかへの呼び出しが Place Details (New) または Address Validation。対象 詳細については、以下をご覧ください。 予測入力(新)とセッションの料金。
リクエスト例
詳細な例については、 予測入力(新)。