Sha256: 3b751f02b74a65ba55c8d58ecb4f5f9c3d8a1b1d6f42bb1618565a57ed44a2f3
Contents?: true
Size: 905 Bytes
Versions: 13
Compression:
Stored size: 905 Bytes
Contents
require 'geocoder/results/base' module Geocoder::Result class NationaalGeoregisterNl < Base def response_attributes @data end def coordinates @data['centroide_ll'][6..-2].split(' ').map(&:to_f).reverse end def formatted_address @data['weergavenaam'] end alias_method :address, :formatted_address def province @data['provincienaam'] end alias_method :state, :province def city @data['woonplaatsnaam'] end def district @data['gemeentenaam'] end def street @data['straatnaam'] end def street_number @data['huis_nlt'] end def address_components @data end def state_code @data['provinciecode'] end def postal_code @data['postcode'] end def country "Netherlands" end def country_code "NL" end end end
Version data entries
13 entries across 13 versions & 1 rubygems