Class: Groonga::WGS84GeoPoint
- Defined in:
- lib/groonga/geo-point.rb
Instance Attribute Summary
Attributes inherited from GeoPoint
Instance Method Summary collapse
Methods inherited from GeoPoint
#==, #degree?, #initialize, #inspect, #msec?, parse, #to_degree, #to_msec, #to_s
Constructor Details
This class inherits a constructor from Groonga::GeoPoint
Instance Method Details
#to_tokyo ⇒ Object
195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/groonga/geo-point.rb', line 195 def to_tokyo in_degree = to_degree tokyo_latitude_in_degree = in_degree.latitude * 1.000106961 - in_degree.longitude * 0.000017467 - 0.004602017 tokyo_longitude_in_degree = in_degree.longitude * 1.000083049 + in_degree.latitude * 0.000046047 - 0.010041046 TokyoGeoPoint.new(tokyo_latitude_in_degree, tokyo_longitude_in_degree) end |
#to_wgs84 ⇒ Object
208 209 210 |
# File 'lib/groonga/geo-point.rb', line 208 def to_wgs84 self end |