Show / Hide Table of Contents

Class AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction

Prediction results for a Place Autocomplete prediction.

Inheritance
object
AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction
Implements
IMessage<AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction>
IEquatable<AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction>
IDeepCloneable<AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction : IMessage<AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction>, IEquatable<AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction>, IDeepCloneable<AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction>, IBufferMessage, IMessage

Constructors

PlacePrediction()

Declaration
public PlacePrediction()

PlacePrediction(PlacePrediction)

Declaration
public PlacePrediction(AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction other)
Parameters
Type Name Description
AutocompletePlacesResponse.Types.Suggestion.Types.PlacePrediction other

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
public int DistanceMeters { get; set; }
Property Value
Type Description
int

Place

The resource name of the suggested Place. This name can be used in other APIs that accept Place names.

Declaration
public string Place { get; set; }
Property Value
Type Description
string

PlaceAsPlaceName

PlaceName-typed view over the Place resource name property.

Declaration
public PlaceName PlaceAsPlaceName { get; set; }
Property Value
Type Description
PlaceName

PlaceId

The unique identifier of the suggested Place. This identifier can be used in other APIs that accept Place IDs.

Declaration
public 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
public AutocompletePlacesResponse.Types.Suggestion.Types.StructuredFormat StructuredFormat { get; set; }
Property Value
Type Description
AutocompletePlacesResponse.Types.Suggestion.Types.StructuredFormat

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
public AutocompletePlacesResponse.Types.Suggestion.Types.FormattableText Text { get; set; }
Property Value
Type Description
AutocompletePlacesResponse.Types.Suggestion.Types.FormattableText

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
public RepeatedField<string> Types_ { get; }
Property Value
Type Description
RepeatedField<string>
In this article
Back to top Generated by DocFX