Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
[TAAS-18] countries.json += hrinfo_id, admin_level, geo; label tweak
Browse files Browse the repository at this point in the history
For our `countries.json` output:

- Added `hrinfo_id`
- Added `admin_level`
- Added `geolocation` (lat/lon)
- Tweaked `label.hrinfo` → `label.humanitarianresponse`

These were based upon the feedback in PR #14
  • Loading branch information
pjf committed Mar 27, 2017
1 parent b3cdfe9 commit d3fd51d
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions taas/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ sources:
field: ISO 3166-2:2013 Alpha 2-Codes
optional: True

# The old HRinfo ID, in case people want to match.
hrinfo_id:
field: HRinfo ID
optional: True

admin_level:
field: Admin Level
optional: True

# We have historical ISO-3166 data, but it does not appear in
# the original API, has only a single location in our
# spreadsheet which has a code. Since we're going for a minimum
Expand All @@ -79,7 +88,7 @@ sources:
# it very clear that these are all variations of the same name.
label.default: Preferred Term

label.hrinfo:
label.humanitarianresponse:
field:
- HRinfo Alt Term
- Preferred Term
Expand All @@ -101,6 +110,12 @@ sources:
- m49 Alt Term
- Preferred Term

# Our locations intentionally no longer include Lat/Long.
# Because this is allegedly a list of countries, we do not
# include admin level either.
# Lat/Long are a map, these keep backwards compatibility
# with our old API.
geolocation.lat:
field: Latitude
optional: True

geolocation.lon:
field: Longitude
optional: True

0 comments on commit d3fd51d

Please sign in to comment.