module Geos::GoogleMaps::Api2::Point
Public Instance Methods
to_g_lat_lng_api2(options = {})
click to toggle source
Returns a new GLatLng.
# File lib/geos/google_maps/api_2.rb, line 127 def to_g_lat_lng_api2(options = {}) klass = if options[:short_class] 'GLatLng' else 'google.maps.LatLng' end "new #{klass}(#{self.lat}, #{self.lng})" end
to_g_point_api2(options = {})
click to toggle source
Returns a new GPoint
# File lib/geos/google_maps/api_2.rb, line 138 def to_g_point_api2(options = {}) klass = if options[:short_class] 'GPoint' else 'google.maps.Point' end "new #{klass}(#{self.x}, #{self.y})" end