Skip to content

Commit

Permalink
Implement county for FCC
Browse files Browse the repository at this point in the history
  • Loading branch information
dsantosmerino committed Jan 22, 2020
1 parent 8cf5ec7 commit 5a6ea0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/geokit/geocoders/fcc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def self.parse_json(results)
loc.country_code = 'US'
loc.district = results['County']['name']
loc.district_fips = results['County']['FIPS']
loc.county = results['County']['name']
loc.state = results['State']['code']
loc.state_fips = results['State']['FIPS']
loc.block_fips = results['Block']['FIPS']
Expand Down
1 change: 1 addition & 0 deletions test/test_fcc_geocoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def test_fcc_reverse_geocode
assert_url url
assert_equal res.country_code, 'US'
assert_equal res.state, 'CA'
assert_equal res.county, 'Los Angeles'
assert_equal res.district, 'Los Angeles'
end
end

0 comments on commit 5a6ea0b

Please sign in to comment.