class Google::Geocoding::Geometry

Attributes

bounds[R]
location[R]
location_type[R]
viewport[R]

Public Class Methods

new(bounds, location, location_type, viewport) click to toggle source
# File lib/google/geocoding.rb, line 76
def initialize(bounds, location, location_type, viewport)
  @bounds = bounds.map { |k, v| [k.to_sym, LatLng.new(v['lat'], v['lng'])] }.to_h
  @location = LatLng.new(location['lat'], location['lng'])
  @location_type = location_type
  @viewport = viewport.map { |k, v| [k.to_sym, LatLng.new(v['lat'], v['lng'])] }.to_h
end