类 AutocompletePrediction
java.lang.Object
ai.nextbillion.maps.model.AutocompletePrediction
- 所有已实现的接口:
java.io.Serializable
public class AutocompletePrediction
extends java.lang.Object
implements java.io.Serializable
Represents a single Autocomplete result returned from the Google Places API Web Service.
Please see Query Autocomplete Responses for more detail.
- 另请参阅:
- 序列化表格
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classAutocompletePrediction.MatchedSubstringDescribes the location of the entered term in the prediction result text, so that the term can be highlighted if desired.static classAutocompletePrediction.TermIdentifies each section of the returned description. -
字段概要
字段 修饰符和类型 字段 说明 java.lang.StringdescriptionDescription of the matched prediction.java.lang.IntegerdistanceMetersThe distance in meters of the place from thePlaceAutocompleteRequest.origin(LatLng).AutocompletePrediction.MatchedSubstring[]matchedSubstringsThe locations of the entered term in the prediction result text, so that the term can be highlighted if desired.java.lang.StringplaceIdThe Place ID of the place.AutocompleteStructuredFormattingstructuredFormattingA description of how the autocomplete query matched the returned result.AutocompletePrediction.Term[]termsAn array of terms identifying each section of the returned description.java.lang.String[]typesAn array indicating the type of the address component. -
构造器概要
构造器 构造器 说明 AutocompletePrediction() -
方法概要
修饰符和类型 方法 说明 java.lang.StringtoString()
-
字段详细资料
-
description
public java.lang.String descriptionDescription of the matched prediction. -
placeId
public java.lang.String placeIdThe Place ID of the place. -
types
public java.lang.String[] typesAn array indicating the type of the address component.Please see supported types for a list of types that can be returned.
-
terms
An array of terms identifying each section of the returned description. (A section of the description is generally terminated with a comma.) Each entry in the array has a value field, containing the text of the term, and an offset field, defining the start position of this term in the description, measured in Unicode characters. -
distanceMeters
public java.lang.Integer distanceMetersThe distance in meters of the place from thePlaceAutocompleteRequest.origin(LatLng). Optional. -
matchedSubstrings
The locations of the entered term in the prediction result text, so that the term can be highlighted if desired. -
structuredFormatting
A description of how the autocomplete query matched the returned result.
-
-
构造器详细资料
-
AutocompletePrediction
public AutocompletePrediction()
-
-
方法详细资料
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-