Packages
Books API client library. The Google Books API allows clients to access the Google Books repository.
Current section
Files
Jump to
Current section
Files
lib/google_api/books/v1/model/geolayerdata_geo.ex
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This class is auto generated by the elixir code generator program.
# Do not edit the class manually.
defmodule GoogleApi.Books.V1.Model.GeolayerdataGeo do
@moduledoc """
## Attributes
- boundary (list(list(GoogleApi.Books.V1.Model.GeolayerdataGeoBoundary.t))): The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates. Defaults to `nil`.
- cachePolicy (String.t): The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER Defaults to `nil`.
- countryCode (String.t): The country code of the location. Defaults to `nil`.
- latitude (float()): The latitude of the location. Defaults to `nil`.
- longitude (float()): The longitude of the location. Defaults to `nil`.
- mapType (String.t): The type of map that should be used for this location. EX: HYBRID, ROADMAP, SATELLITE, TERRAIN Defaults to `nil`.
- viewport (GoogleApi.Books.V1.Model.GeolayerdataGeoViewport.t): The viewport for showing this location. This is a latitude, longitude rectangle. Defaults to `nil`.
- zoom (integer()): The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom level, in which the entire world can be seen on one map) to 21+ (down to individual buildings). See: https://developers.google.com/maps/documentation/staticmaps/#Zoomlevels Defaults to `nil`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:boundary => list(list(GoogleApi.Books.V1.Model.GeolayerdataGeoBoundary.t())),
:cachePolicy => String.t(),
:countryCode => String.t(),
:latitude => float(),
:longitude => float(),
:mapType => String.t(),
:viewport => GoogleApi.Books.V1.Model.GeolayerdataGeoViewport.t(),
:zoom => integer()
}
field(:boundary, type: :list)
field(:cachePolicy)
field(:countryCode)
field(:latitude)
field(:longitude)
field(:mapType)
field(:viewport, as: GoogleApi.Books.V1.Model.GeolayerdataGeoViewport)
field(:zoom)
end
defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.GeolayerdataGeo do
def decode(value, options) do
GoogleApi.Books.V1.Model.GeolayerdataGeo.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.GeolayerdataGeo do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end