Class: Locations::Location

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

Constant Summary collapse

STATION =
0
ADDRESS =
1
POI =
2
ANY =
3

Instance Method Summary collapse

Constructor Details

#initialize(javaStation) ⇒ Location

Returns a new instance of Location.



10
11
12
13
14
15
16
# File 'lib/oeffi/locations.rb', line 10

def initialize(javaStation)
  @type = javaStation.type.to_s
  @id   = javaStation.id
  @name = javaStation.name
  @lat  = javaStation.lat.to_f / 1000000
  @lng  = javaStation.lon.to_f / 1000000
end