class USGeo::PlaceCounty

Mapping of urban areas to counties they overlap with.

Public Class Methods

load!(uri = nil) click to toggle source
# File lib/us_geo/place_county.rb, line 15
def load!(uri = nil)
  location = data_uri(uri || "place_counties.csv")

  import! do
    load_data_file(location) do |row|
      load_record!(place_geoid: row["Place GEOID"], county_geoid: row["County GEOID"]) do |record|
      end
    end
  end
end