Open critzo opened 5 years ago
Noting that the ISO 3166-2 region codes are a part of the Maxmind Geolite2-City Locations.
The fields I believe we should consider adding to the ndt schema and annotator are:
Adding a link to the place in the code where the current region code is referenced: https://github.com/m-lab/annotation-service/blob/master/geolite2v2/geo-ip.go#L111
Should be straightforward to pull the ISO 3166-2 subregion 2 code from the City dataset for the sub-regions.
The annotation service currently populates
connection_spec.client_geolocation.region
with the top level ISO 3166-2 region code. To restore the region code granularity we had prior to 2017-05-11, we should add a field for the client region subdivision, annotated with the subdivision codes in the ISO 3166-2 standard.To demonstrate the issue, I include the query below, and a trimmed result set for Great Britain. Prior to 2017-05-11 we annotated ~198 region codes in this field, whereas now it's 4: