#35092: Expose additional data in responses from geoip2 queries.
---------------------------------------+---------------------------
               Reporter:  Nick Pope    |          Owner:  Nick Pope
                   Type:  New feature  |         Status:  assigned
              Component:  GIS          |        Version:  dev
               Severity:  Normal       |       Keywords:  geoip2
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+---------------------------
 I'd like to expose some of the data missing in the responses returned for
 both country and city queries.

 For country responses, we should return `continent_code`,
 `continent_name`, and `is_in_european_union`'''^1^'''.

 For city responses, we should return `accuracy_radius` and `region_name`.
 We should also rename `region` to `region_code` and `dma_code`'''^2^''' to
 `metro_code`. ''(In my initial patch I've kept the old names around for
 backward compatibility, but perhaps we should deprecate those keys?)''

 ----
 '''^1^''' ''This was already added for city responses in #30447.''
 '''^2^''' ''IIRC this is an old name for `metro_code` that was used in the
 old v1 of the GeoIP library...''

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35092>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018cdfc3024f-f6df99ed-1155-47cc-9639-12dac39c5f4b-000000%40eu-central-1.amazonses.com.

Reply via email to