Class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction
Prediction results for a Place Autocomplete prediction.
Implements
Inherited Members
Namespace: Google.Apis.MapsPlaces.v1.Data
Assembly: Google.Apis.MapsPlaces.v1.dll
Syntax
public class GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction : IDirectResponseSchema
Properties
DistanceMeters
The length of the geodesic in meters from origin
if origin
is specified. Certain predictions such as
routes may not populate this field.
Declaration
[JsonProperty("distanceMeters")]
public virtual int? DistanceMeters { get; set; }
Property Value
Type | Description |
---|---|
int? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Place
The resource name of the suggested Place. This name can be used in other APIs that accept Place names.
Declaration
[JsonProperty("place")]
public virtual string Place { get; set; }
Property Value
Type | Description |
---|---|
string |
PlaceId
The unique identifier of the suggested Place. This identifier can be used in other APIs that accept Place IDs.
Declaration
[JsonProperty("placeId")]
public virtual string PlaceId { get; set; }
Property Value
Type | Description |
---|---|
string |
StructuredFormat
A breakdown of the Place prediction into main text containing the name of the Place and secondary text
containing additional disambiguating features (such as a city or region). structured_format
is recommended
for developers who wish to show two separate, but related, UI elements. Developers who wish to show a single
UI element may want to use text
instead. They are two different ways to represent a Place prediction.
Users should not try to parse structured_format
into text
or vice versa.
Declaration
[JsonProperty("structuredFormat")]
public virtual GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat StructuredFormat { get; set; }
Property Value
Type | Description |
---|---|
GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat |
Text
Contains the human-readable name for the returned result. For establishment results, this is usually the
business name and address. text
is recommended for developers who wish to show a single UI element.
Developers who wish to show two separate, but related, UI elements may want to use structured_format
instead. They are two different ways to represent a Place prediction. Users should not try to parse
structured_format
into text
or vice versa. This text may be different from the display_name
returned
by GetPlace. May be in mixed languages if the request input
and language_code
are in different languages
or if the Place does not have a translation from the local language to language_code
.
Declaration
[JsonProperty("text")]
public virtual GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText Text { get; set; }
Property Value
Type | Description |
---|---|
GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText |
Types
List of types that apply to this Place from Table A or Table B in https://developers.google.com/maps/documentation/places/web-service/place-types. A type is a categorization of a Place. Places with shared types will share similar characteristics.
Declaration
[JsonProperty("types")]
public virtual IList<string> Types { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |