Class: Geocoder::EastingNorthing

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ EastingNorthing

Returns a new instance of EastingNorthing.


5
6
7
8
9
10
# File 'lib/easting_northing.rb', line 5

def initialize(opts)
  @easting = opts[:easting]
  @northing = opts[:northing]

  @lat_lng = to_WGS84(to_osgb_36)
end

Instance Attribute Details

#eastingObject (readonly)

Returns the value of attribute easting


3
4
5
# File 'lib/easting_northing.rb', line 3

def easting
  @easting
end

#lat_lngObject (readonly)

Returns the value of attribute lat_lng


3
4
5
# File 'lib/easting_northing.rb', line 3

def lat_lng
  @lat_lng
end

#northingObject (readonly)

Returns the value of attribute northing


3
4
5
# File 'lib/easting_northing.rb', line 3

def northing
  @northing
end