class Geocoder::Result::Pelias

def self.response_attributes

def self.response_attributes
  %w[county confidence country gid id layer localadmin locality neighborhood]
end

def address(format = :full)

def address(format = :full)
  properties['label']
end

def city

def city
  locality
end

def coordinates

def coordinates
  geometry['coordinates'].reverse
end

def country_code

def country_code
  properties['country_a']
end

def geometry

def geometry
  @data.fetch('geometry', {})
end

def postal_code

def postal_code
  properties['postalcode'].to_s
end

def properties

def properties
  @data.fetch('properties', {})
end

def province

def province
  state
end

def state

def state
  properties['region']
end

def state_code

def state_code
  properties['region_a']
end