View Source GoogleApi.Places.V1.Model.GoogleMapsPlacesV1SearchTextRequestLocationBias (google_api_places v0.8.2)

The region to search. This location serves as a bias which means results around given location might be returned.

Attributes

  • circle (type: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Circle.t, default: nil) - A circle defined by center point and radius.
  • rectangle (type: GoogleApi.Places.V1.Model.GoogleGeoTypeViewport.t, default: nil) - A rectangle box defined by northeast and southwest corner. rectangle.high() must be the northeast point of the rectangle viewport. rectangle.low() must be the southwest point of the rectangle viewport. rectangle.low().latitude() cannot be greater than rectangle.high().latitude(). This will result in an empty latitude range. A rectangle viewport cannot be wider than 180 degrees.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

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

Unwrap a decoded JSON object into its complex fields.