Get latest "locations" dataset
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 200
- Avg merge
- 4h 56m
- Merged PRs (30d)
- 5
Description
## User Story
In order to better translate location names in the spatial translation of the dcatus spatial field, datagov wants to discover and use the latest dataset of locations.
## Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using [BDD](https://en.wikipedia.org/wiki/Behavior-driven_development#Behavioral_specifications).]
- [ ] GIVEN the current locations [dataset](https://github.com/GSA/catalog.data.gov/blob/8751c85a19653068c20501887e359ce149455bb0/tools/locations-table/install-locations-table.sh#L10C134-L10C146) \
WHEN a new version of that dataset is discovered \
THEN it will be added to the harvester database for spatial translation
## Background
- location names can occur in the "spatial" field of dcatus. we want to translate these values into geojson. for example, "California" would be translated to...
```python
{"type":"Polygon","coordinates":[[[-124.3926,32.5358],[-124.3926,42.0022], "[-114.1252,42.0022],[-114.1252,32.5358],[-124.3926,32.5358]]]}
```
- [geonames](https://www.geonames.org/) has location data but they're points. we want polygons.
## Security Considerations ([required](https://nvd.nist.gov/800-53/Rev4/control/CM-4))
[comment]: # "Our SSP says 'The Data.gov team ensures security implications are considered as part of the agile requirements refinement process by including a section in the issue template used as a basis for new work.' so please don't remove this section without care."
[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]
## Sketch
- here's [how](https://github.com/GSA/data.gov/issues/5084#issuecomment-2686099903) you can load data from a tab-delimited text file similar to what you'd find on geonames.
Contributor guide
Assessment
This issue has not been assessed yet.