View Source GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark (google_api_places v0.8.1)

Basic landmark information and the landmark's relationship with the target location. Landmarks are prominent places that can be used to describe a location.

Attributes

  • displayName (type: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t, default: nil) - The landmark's display name.
  • name (type: String.t, default: nil) - The landmark's resource name.
  • placeId (type: String.t, default: nil) - The landmark's place id.
  • spatialRelationship (type: String.t, default: nil) - Defines the spatial relationship between the target location and the landmark.
  • straightLineDistanceMeters (type: number(), default: nil) - The straight line distance in meters between the target location and the landmark.
  • travelDistanceMeters (type: number(), default: nil) - The travel distance in meters along the road network if known. This does not take into account the mode of transportation (walking/driving).
  • types (type: list(String.t), default: nil) - A set of type tags for this landmark. For a complete list of possible values, see https://developers.google.com/maps/documentation/places/web-service/place-types.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark{
  displayName: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil,
  name: String.t() | nil,
  placeId: String.t() | nil,
  spatialRelationship: String.t() | nil,
  straightLineDistanceMeters: number() | nil,
  travelDistanceMeters: number() | nil,
  types: [String.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.