Class: AppEngine::Datastore::GeoPt

Inherits:
Object
  • Object
show all
Defined in:
lib/appengine-apis/datastore_types.rb

Overview

A geographical point, specified by float latitude and longitude coordinates. Often used to integrate with mapping sites like Google Maps.

Class Method Summary collapse

Class Method Details

.new(latitude, longitude) ⇒ Object



237
238
239
240
241
# File 'lib/appengine-apis/datastore_types.rb', line 237

def self.new(latitude, longitude)
  super
rescue java.lang.IllegalArgumentException => ex
  raise ArgumentError, ex.message
end