Sha256: 83c50c60ab2882b2fd6328789184a3d6bb5cf9e32d4f30ed6395a4c6bdee6e59
Contents?: true
Size: 811 Bytes
Versions: 63
Compression:
Stored size: 811 Bytes
Contents
require 'geocoder/results/base' module Geocoder::Result class BaiduIp < Base def coordinates [point['y'].to_f, point['x'].to_f] end def address @data['address'] end def state province end def province address_detail['province'] end def city address_detail['city'] end def district address_detail['district'] end def street address_detail['street'] end def street_number address_detail['street_number'] end def state_code "" end def postal_code "" end def country "China" end def country_code "CN" end private def address_detail @data['address_detail'] end def point @data['point'] end end end
Version data entries
63 entries across 63 versions & 6 rubygems