GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark (google_api_places v0.11.0)

View Source

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 center point of the target and the center point of the landmark. In some situations, this value can be longer than travel_distance_meters.
  • travelDistanceMeters (type: number(), default: nil) - The travel distance, in meters, along the road network from the target to the landmark, if known. This value does not take into account the mode of transportation, such as walking, driving, or biking.
  • 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

t()

@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

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.