@@ -255,6 +255,13 @@ class Location(Record):
255255
256256 Attributes:
257257
258+ .. attribute:: average_income
259+
260+ The average income in US dollars associated with the requested IP address
261+ This attribute is only available from the Insights end point.
262+
263+ :type: int
264+
258265 .. attribute:: accuracy_radius
259266
260267 The radius in kilometers around the
@@ -269,7 +276,6 @@ class Location(Record):
269276
270277 :type: float
271278
272-
273279 .. attribute:: longitude
274280
275281 The longitude of the location as a
@@ -286,6 +292,13 @@ class Location(Record):
286292
287293 :type: int
288294
295+ .. attribute:: population_density
296+
297+ The estimated population per square kilometer associated with the IP
298+ address. This attribute is only available from the Insights end point.
299+
300+ :type: int
301+
289302 .. attribute:: time_zone
290303
291304 The time zone associated with location, as
@@ -295,9 +308,9 @@ class Location(Record):
295308 :type: unicode
296309
297310 """
298- _valid_attributes = set (['accuracy_radius ' , 'latitude ' , 'longitude ' ,
299- 'metro_code ' , 'postal_code ' , 'postal_confidence ' ,
300- 'time_zone' ])
311+ _valid_attributes = set (['average_income ' , 'accuracy_radius ' , 'latitude ' ,
312+ 'longitude ' , 'metro_code ' , 'population_density ' ,
313+ 'postal_code' , 'postal_confidence' , ' time_zone' ])
301314
302315
303316class MaxMind (Record ):
0 commit comments