Skip to content

Commit 2b00011

Browse files
committed
Deprecate metro code
1 parent 4c69881 commit 2b00011

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
History
55
-------
66

7+
4.9.0
8+
++++++++++++++++++
9+
10+
* ``metro_code`` on ``geoip2.record.Location`` has been deprecated. The
11+
code values are no longer being maintained.
12+
713
4.8.1 (2024-11-18)
814
++++++++++++++++++
915

geoip2/records.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,10 @@ class Location(Record):
357357
358358
.. attribute:: metro_code
359359
360-
The metro code of the location if the
361-
location is in the US. MaxMind returns the same metro codes as the
362-
`Google AdWords API
363-
<https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions>`_.
360+
The metro code is a no-longer-maintained code for targeting
361+
advertisements in Google.
362+
363+
.. deprecated:: 4.9.0
364364
365365
:type: int
366366

0 commit comments

Comments
 (0)