Sha256: 6ac11e354adfd8fa19bf4b82ab65e2796661aa761960e885de7b1989d3b04dd4
Contents?: true
Size: 752 Bytes
Versions: 10
Compression:
Stored size: 752 Bytes
Contents
require 'geocoder/results/base' module Geocoder::Result class MelissaStreet < Base def address(format = :full) @data['FormattedAddress'] end def street_address @data['AddressLine1'] end def suffix @data['ThoroughfareTrailingType'] end def number @data['PremisesNumber'] end def city @data['Locality'] end def state_code @data['AdministrativeArea'] end alias_method :state, :state_code def country @data['CountryName'] end def country_code @data['CountryISO3166_1_Alpha2'] end def postal_code @data['PostalCode'] end def coordinates [@data['Latitude'].to_f, @data['Longitude'].to_f] end end end
Version data entries
10 entries across 10 versions & 1 rubygems