Module: Silva::Location
- Defined in:
- lib/silva/location.rb
Overview
A spoonful of syntactic sugar for creating location systems from the relevant parameters:
loc = Silva::Location.from(:en, :easting => 651409, :northing => 31377).to(:wgs84) lat = loc.lat, long = loc.long
Class Method Summary collapse
-
.from(system_name, options) ⇒ Silva::System
Create a location system from the given parameters.
Class Method Details
.from(system_name, options) ⇒ Silva::System
Create a location system from the given parameters.
17 18 19 |
# File 'lib/silva/location.rb', line 17 def self.from(system_name, ) Silva::System.create(system_name, ) end |