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

View Source

The region to search. The results will be restricted to the specified region.

Attributes

  • circle (type: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Circle.t, default: nil) - A circle defined by a center point and radius.
  • rectangle (type: GoogleApi.Places.V1.Model.GoogleGeoTypeViewport.t, default: nil) - A viewport defined by a northeast and a southwest corner.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction{
    circle: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Circle.t() | nil,
    rectangle: GoogleApi.Places.V1.Model.GoogleGeoTypeViewport.t() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.