-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into HZA-419-Modify-HUBZone-map-API-to-accept-…
…lat-long-parameters
- Loading branch information
Showing
3 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# Allows for assertion of a location against the likely_qda HubZone layer | ||
class UsCountyAssertion | ||
extend AssertionHelper | ||
|
||
class << self | ||
def assertion(location) | ||
congressional_districts = [] | ||
assertion_by_type('data.tl_2021_us_county', location).each do |cd| | ||
puts "\n== query result US-county" | ||
puts cd | ||
cd['hz_type'] = 'us_county' | ||
cd['tract_fips'] = cd['countyfp'] | ||
cd['county'] =cd['namelsadco'] | ||
cd['state'] = cd['state_name'] | ||
cd['expires'] =nil | ||
congressional_districts.push(cd) | ||
end | ||
congressional_districts | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
# Allows for assertion of a location against the likely_qda HubZone layer | ||
class UsTractAssertion | ||
extend AssertionHelper | ||
|
||
class << self | ||
def assertion(location) | ||
congressional_districts = [] | ||
assertion_by_type('data.tl_2021_us_tract', location).each do |cd| | ||
puts "\n== query result US-Tract" | ||
puts cd | ||
cd['hz_type'] = 'us_tract' | ||
cd['tract_fips'] = cd['countyfp'] | ||
cd['county'] =cd['namelsadco'] | ||
cd['state'] = cd['state_name'] | ||
cd['expires'] =nil | ||
congressional_districts.push(cd) | ||
end | ||
congressional_districts | ||
end | ||
end | ||
end |