Skip to content

Commit

Permalink
Merge pull request #186 from maxmind/greg/eng-1001-mark-metro-code-da…
Browse files Browse the repository at this point in the history
…ta-as-deprecated-in-our-libraries

Deprecate metro code
  • Loading branch information
horgh authored Jan 13, 2025
2 parents 4c69881 + 2b00011 commit 963cd22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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

0 comments on commit 963cd22

Please sign in to comment.