class Geocoder::Result::Osmnames
def self.response_attributes
def self.response_attributes %w[house_number street city name osm_id osm_type boundingbox place_rank importance county rank name_suffix] end
def address
def address @data['display_name'] end
def coordinates
def coordinates [@data['lat'].to_f, @data['lon'].to_f] end
def country
def country @data['country'] end
def country_code
def country_code @data['country_code'] end
def place_class
def place_class @data['class'] end
def place_type
def place_type @data['type'] end
def postal_code
def postal_code '' end
def state
def state @data['state'] end
def viewport
def viewport west, south, east, north = @data['boundingbox'].map(&:to_f) [south, west, north, east] end