33======
44
55These classes provide models for the data returned by the GeoIP2
6- end points .
6+ web service and databases .
77
8- The only difference between the City, City/ISP/Org, and Omni model classes is
9- which fields in each record may be populated. See
8+ The only difference between the City and Insights model classes is which
9+ fields in each record may be populated. See
1010http://dev.maxmind.com/geoip/geoip2/web-services for more details.
1111
1212"""
1616
1717class Country (object ):
1818
19- """Model class for the GeoIP2 Country
19+ """Model for the GeoIP2 Precision: Country and the GeoIP2 Country database
2020
2121 This class provides the following attributes:
2222
@@ -51,8 +51,7 @@ class Country(object):
5151
5252 Object for the country represented by the users of the IP address
5353 when that country is different than the country in ``country``. For
54- instance, the country represented by an overseas military base or
55- embassy.
54+ instance, the country represented by an overseas military base.
5655
5756 :type: :py:class:`geoip2.records.RepresentedCountry`
5857
@@ -92,8 +91,7 @@ def __init__(self, raw_response, locales=None):
9291
9392class City (Country ):
9493
95- """Model class for the GeoIP2 Precision City
96-
94+ """Model for the GeoIP2 Precision: City and the GeoIP2 City database
9795 .. attribute:: city
9896
9997 City object for the requested IP address.
@@ -135,8 +133,7 @@ class City(Country):
135133
136134 Object for the country represented by the users of the IP address
137135 when that country is different than the country in ``country``. For
138- instance, the country represented by an overseas military base or
139- embassy.
136+ instance, the country represented by an overseas military base.
140137
141138 :type: :py:class:`geoip2.records.RepresentedCountry`
142139
@@ -153,7 +150,7 @@ class City(Country):
153150
154151 :type: :py:class:`geoip2.records.Traits`
155152
156- """
153+ """
157154
158155 def __init__ (self , raw_response , locales = None ):
159156 super (City , self ).__init__ (raw_response , locales )
@@ -168,75 +165,9 @@ def __init__(self, raw_response, locales=None):
168165 * raw_response .get ('subdivisions' , []))
169166
170167
171- class CityISPOrg (City ):
172-
173- """Model class for the GeoIP2 Precision City/ISP/Org
174-
175- .. attribute:: city
176-
177- City object for the requested IP address.
178-
179- :type: :py:class:`geoip2.records.City`
180-
181- .. attribute:: continent
182-
183- Continent object for the requested IP address.
184-
185- :type: :py:class:`geoip2.records.Continent`
186-
187- .. attribute:: country
188-
189- Country object for the requested IP address. This record represents the
190- country where MaxMind believes the IP is located.
191-
192- :type: :py:class:`geoip2.records.Country`
193-
194- .. attribute:: location
195-
196- Location object for the requested IP address.
197-
198- .. attribute:: maxmind
199-
200- Information related to your MaxMind account.
201-
202- :type: :py:class:`geoip2.records.MaxMind`
203-
204- .. attribute:: registered_country
205-
206- The registered country object for the requested IP address. This record
207- represents the country where the ISP has registered a given IP block in
208- and may differ from the user's country.
209-
210- :type: :py:class:`geoip2.records.Country`
211-
212- .. attribute:: represented_country
213-
214- Object for the country represented by the users of the IP address
215- when that country is different than the country in ``country``. For
216- instance, the country represented by an overseas military base or
217- embassy.
218-
219- :type: :py:class:`geoip2.records.RepresentedCountry`
220-
221- .. attribute:: subdivisions
222-
223- Object (tuple) representing the subdivisions of the country to which
224- the location of the requested IP address belongs.
225-
226- :type: :py:class:`geoip2.records.Subdivisions`
227-
228- .. attribute:: traits
229-
230- Object with the traits of the requested IP address.
231-
232- :type: :py:class:`geoip2.records.Traits`
233-
234- """
235-
236-
237- class Omni (CityISPOrg ):
168+ class Insights (City ):
238169
239- """Model class for the GeoIP2 Precision Omni
170+ """Model for the GeoIP2 Precision: Insights web service endpoint
240171
241172 .. attribute:: city
242173
@@ -279,8 +210,7 @@ class Omni(CityISPOrg):
279210
280211 Object for the country represented by the users of the IP address
281212 when that country is different than the country in ``country``. For
282- instance, the country represented by an overseas military base or
283- embassy.
213+ instance, the country represented by an overseas military base.
284214
285215 :type: :py:class:`geoip2.records.RepresentedCountry`
286216
0 commit comments