Skip to content
InternetData

IP Geolocation adds an accuracy radius, last change and DMA

IP Geolocation now carries four more columns on every range: an accuracy radius, the date its location last changed, the city's GeoNames id and a US DMA code.

Published 2 min read

On this page
  1. Four more columns
  2. What the columns are for
  3. What's in it
  4. Getting access

IP Geolocation has four more columns on every range: an accuracy radius, the date the range's location last changed, the city's GeoNames id and, in the US, its media market. They're in the same CSV and MMDB, rebuilt daily.

Four more columns

ColumnWhat it holds
accuracy_radiusThe radius in kilometers around the coordinates that holds the true location with 67% confidence; 20000 for an anycast range, which answers from many places
last_changedThe date the range's location (its country, region, city or coordinates) last changed
geoname_idThe city's id in the GeoNames gazetteer
dma_codeA US city's TV market (DMA, designated market area) as its 3-digit code: 501 is New York, 803 Los Angeles

Five rows from the database's sample, by the first address of each range:

Range startCityaccuracy_radiuslast_changedgeoname_iddma_code
74.42.24.170Ashburn, US20002026-10-024744870511
2600:141b:e800:30::Piscataway, US102026-10-015102713501
206.172.98.37Toronto, CA102026-10-076167865
129.148.12.0São Paulo, BR5002026-10-013448439
1.0.0.0Sydney, AU200002026-10-072147714

What the columns are for

accuracy_radius says how far to trust a row's city: a 10 km row can be acted on at the city, and a 2000 km one is closer to a country answer. 1.0.0.0 is anycast, answered from many places, so its radius covers the planet.

last_changed says which ranges moved since your last pull, so a system that keys anything on location reprocesses only the rows whose date is newer. The earliest date in the file, October 1, means on or before that day.

geoname_id joins a row to GeoNames' own records for the city, its population and its alternate names among them, and dma_code puts a US address in its media market, for ad targeting and reporting.

What's in it

The October 16 build holds 11,282,055 ranges in 58,230 cities, each with its GeoNames id. Every one of the 1,524,987,251 US IPv4 addresses carries a DMA code, across all 210 markets.

Getting access

IP Geolocation ships as CSV and MMDB, rebuilt daily, and its docs page has the schema. Sign up to evaluate it from its sample. A license is per database and never metered: see licensing, or talk to us about what you need. With a license, it's in BigQuery too. A range's continent, country and timezone are free in IP Country.

Written by

  • Uman Shahzad

    Founder & CEO

    IP intelligence data expert for over 8 years, former lead engineer at IPinfo, Uman has pioneered many systems and practices used by IP data companies to operate at scale, provide high-quality data and offer the best developer experiences.

Get new posts by email

Or follow along in a feed reader.

RSS feed

Put this data to work.

Everything these posts report on comes from the databases we license, and you can test them first.

00 · Evaluate

Test the real build first.

An evaluation license puts a full current build in your hands, with no sampling, so you can measure it against your own traffic before anyone talks about terms.

01 · License

Then license what you use.

Standard, for detection and decisions inside your own product and operations.
Redistribution, when the data ships onward inside what you sell, priced by scope rather than by seat.
Annual terms, a named contact, and monthly, quarterly or yearly payment.