#25184 closed New feature (fixed)
Add support for MaxMind GeoLite2 database format
Reported by: | Tim Graham | Owned by: | Flavio Curella |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Django currently supports the GeoLite Legacy format (IPv4 only). There's a patch to add IPv6 legacy support (#18349), but it seems better to add support for the GeoLite2 format instead and possibly deprecate support for the legacy format (could be a separate ticket).
Change History (10)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Support both. Support for the old format should be dropped using the usual deprecation cycle.
comment:3 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 9 years ago
I have a few question re: how we want to approach this:
- Do we want to support both GeoIP and GeoIP2 for some version of Django?
- Could we use the GeoIP2 Python bindings (http://geoip2.readthedocs.org/en/latest/), or should we interface directly with the C library, like
contrib.gis.geoip
currently does? - Correct me if I'm wrong, but looks like the new database records don't have all the information the old ones had. Specifically, I can't see any
country_code3
, orarea_code
. Probably not a big deal, but it will need to be documented.
comment:5 by , 9 years ago
- Yes, we need to keep backwards compatibility to give users a chance to upgrade. Possibly adding a new
django.contrib.gis.geoip2
module and then deprecating the old one (separate ticket) would make sense?
- I don't see a reason to reinvent the wheel. As long as the dependency is optional if you don't care to use GeoIP features, I think that approach should be fine unless someone says otherwise.
- I haven't used these features before.
comment:6 by , 9 years ago
Their Python bindings are licensed under Apache License, Version 2.0. I don't think that would be a problem (and even if, we are not redistributing). I just want to confirm we don't have any licensing issue
@timgraham
Are we looking to support both format for a limited time, or can we have a clear cut?