Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
History
-------

4.9.0
++++++++++++++++++

* ``metro_code`` on ``geoip2.record.Location`` has been deprecated. The
code values are no longer being maintained.

4.8.1 (2024-11-18)
++++++++++++++++++

Expand Down
8 changes: 4 additions & 4 deletions geoip2/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,10 @@ class Location(Record):

.. attribute:: metro_code

The metro code of the location if the
location is in the US. MaxMind returns the same metro codes as the
`Google AdWords API
<https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions>`_.
The metro code is a no-longer-maintained code for targeting
advertisements in Google.

.. deprecated:: 4.9.0

:type: int

Expand Down
Loading