module Geos::GoogleMaps::ApiCommon::UrlValueBounds

Public Instance Methods

to_g_url_value(precision = 6) click to toggle source

Spit out Google's toUrlValue format.

# File lib/geos/google_maps/api_common.rb, line 42
def to_g_url_value(precision = 6)
  e = self.envelope
  "#{e.southwest.to_g_url_value(precision)},#{e.northeast.to_g_url_value(precision)}"
end
Also aliased as: to_g_url_value_bounds
to_g_url_value_bounds(precision = 6)
Alias for: to_g_url_value
to_g_url_value_point(precision = 6) click to toggle source

Force to Google's toUrlValue as a point.

# File lib/geos/google_maps/api_common.rb, line 49
def to_g_url_value_point(precision = 6)
  self.centroid.to_g_url_value(precision)
end