Class: GeoRuby::SimpleFeatures::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/geojson.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



61
62
63
64
# File 'lib/geojson.rb', line 61

def as_json(options = nil)
  {:type => "Point", 
    :coordinates => [self.x, self.y]}.as_json(options)
end