Geo Locate IP: Five Fields, and the Agreement Drops at Each One
A geo locate lookup does not return one answer. It returns five fields at once, and they are read as five steps of increasing precision: country, region, city, postal code, coordinate. Put two independent libraries on the same forty-two addresses and that ladder comes apart from the bottom: the country matched every time, the postal code three times in forty-one.
That order is the reverse of how the fields get quoted: a postal code and a map pin are the parts people copy into a ticket, and the parts a second library almost never repeats. The ledger below prints all five side by side, so a lookup becomes three records you can hold against each other.
Type an address, or leave the field empty to read this browser's exit address.
Forty-two addresses, 126 requests, no failure. Country agreed 42 of 42, city 22 of 42, postal code 3 of 41.
measured
Field ledger
One address, three libraries, five fields. Leave it empty to read this browser.
| Field | ipwho.is | ipinfo.io | freeipapi |
|---|---|---|---|
| Country | — | — | — |
| Region | — | — | — |
| City | — | — | — |
| Postal code | — | — | — |
| Coordinate | — | — | — |
Run the ledger to produce a copyable result.
Each run asks three libraries for the same address: ipwho.is, ipinfo.io and freeipapi.com, which answers through a 307 redirect that both hops keep open to a page. The depth meter counts the fields a library actually filled, from country up to coordinate. Nothing you type is stored or sent anywhere else.
What the five fields actually hold
Every library keeps the same shape. Country is a two-letter code taken from a registry allocation. Region is the first-level administrative unit, a state or a province. City is a place name with no fixed boundary, which is why one address can be San Francisco in one record and Berkeley in another. Postal code is a delivery zone. Coordinate is a point. Only one of the five is a number, and none is measured from the address itself: all five come out of a table keyed on the network block.
| Field | What it holds | Where it comes from | What it can settle |
|---|---|---|---|
| Country | two-letter code | registry allocation | language and jurisdiction |
| Region | state or province | ISP service area | which regional catalogue |
| City | a place name | city-level block table | which metro, roughly |
| Postal code | a delivery zone | postal service tables | nothing about a server |
| Coordinate | latitude and longitude | the city record | where to drop a pin |
The coordinate is the field worth arguing about. It looks like the most precise item on the list and is generated from the least precise one: a library with no point for a block copies the centre of the city it is about to name, which is why the two always agree. Section four measures how closely.
Agreement falls at every step down
The same forty-two addresses went to ipwho.is and ipinfo.io, each field compared after normalising case, accents and punctuation. Both libraries answered every address, so nothing below is a coverage effect.
| Field | Addresses compared | Identical | Different |
|---|---|---|---|
| Country | 42 | 42 | 0 |
| Region | 42 | 26 | 16 |
| City | 42 | 22 | 20 |
| Postal code | 41 | 3 | 38 |
The fall is monotone and it ends in a cliff. Country behaved like a fact, region like a good guess, city like an opinion, and the postal code like a signature nobody else could reproduce: 1.1.1.1 came back as 4001 and 9010, Toronto as M4R and M5V, Madrid as 28086 and 28004. All six are real codes inside the city each library named.
A sharper way to see the same thing: on the twenty-two addresses where the two libraries agreed on the city, nineteen still returned different postal codes. Agreement at one depth does not carry down to the next, because each depth is a separate table with its own update cycle. A filled field is evidence that the library had something to put there, not that anyone checked it.
Depth itself is a setting: ipwho.is filled a postal code for all forty-two addresses, ipinfo.io for forty-one, freeipapi.com for none. The field exists in one data product and not the other, which is why this page counts depth instead of scoring it.
The same field at two different scales
Depth is not the only axis. The third library answered at a finer scale, naming a district, a suburb or a neighbouring municipality where the others named the metro. The depth is identical in every row below; the place is not, and a pipeline joining on city name will treat these as different visitors.
| Address | ipwho.is | ipinfo.io | freeipapi |
|---|---|---|---|
| 185.199.108.1 | San Francisco | San Francisco | San Francisco (South Beach) |
| 76.76.2.0 | Toronto | Toronto | Toronto (Old Toronto) |
| 200.160.0.1 | Sao Paulo | Sao Paulo | Pinheiros |
| 1.180.0.1 | Hohhot | Hohhot | Haoxinying |
| 122.176.0.1 | Jaipur | Jaipur | New Delhi (Okhla) |
| 81.0.0.1 | Sabadell | Mollet del Valles | Alcobendas |
| 9.9.9.9 | San Francisco | Ashburn | Berkeley (North Berkeley) |
| 104.16.0.1 | San Francisco | San Francisco | Toronto |
Geocoding both names gives the size of the gap: a median of eight kilometres over forty-one addresses, thirteen pairs past fifty kilometres, eleven past a hundred, and four past a thousand. Three of those four are anycast blocks, where a single answer cannot exist, and the libraries simply pick different cities to name: Fastly at 4,083 km, Microsoft at 3,837, Cloudflare at 3,642. The fourth, 98.0.0.1, is an ordinary household block with nothing anycast about it, and one library placed it 2,902 km from the other.
Which leaves the word city doing more work than it can carry. If one library means an administrative boundary and another a district inside it, San Francisco and South Beach are both correct and neither is comparable.
The pin repeats the record, it does not test it
Take each library's coordinate and measure it against the centre of the city that same library named for the same address. The median distance was 0 km for ipwho.is, 0 km for ipinfo.io and 3 km for freeipapi.com, whose names cover a smaller area; its largest gap was 12 km. A coordinate that never leaves its own city record cannot confirm that record. It can only decorate it.
Two answers did leave, both from ipwho.is: 52.216.0.1 and 108.0.0.1 came back as Washington with a pin 310 km south, inside the northern Virginia cluster where those blocks are built. That is the useful signal in a coordinate: the point follows the facility, the label follows a metro list, and when they part company the point is more specific.
So a rule for reading any geo locate answer: take the country as given, the region as a hint, the city as one library's boundary choice, and stop treating the postal code and the pin as confirmation of either. The ledger prints all five so that choice stays visible.
Questions this test answers
How accurate is a geo locate IP lookup?
It depends which field you read. Over 42 addresses, two libraries returned the same country 42 times, the same first-level region 26 times, the same city 22 times and the same postal code 3 times out of 41. Country is safe to act on. Region is good for choosing a catalogue. City is a second opinion away from changing. A postal code from a lookup is not worth quoting.
Why do two lookup sites show different cities for one IP address?
Because they draw the boundary at different scales, and because some addresses have no location to draw. One library returned Pinheiros where the others returned Sao Paulo, and Haoxinying where the others returned Hohhot. Once both names are geocoded, the median gap over 41 addresses was 8 km, 13 pairs sat more than 50 km apart and four sat more than 1,000 km apart, three of those four being anycast blocks served from many cities at once.
What does the postal code in a lookup result mean?
That the library keeps a postal code next to its city record, nothing more. The two libraries agreed on only 3 of 41 postal codes, and 19 of the 22 addresses that shared a city still came back with different codes, such as Toronto M4R against M5V or Madrid 28086 against 28004. One of the three libraries returned no postal code at all for any of the 42 addresses, which makes depth a setting rather than a measure of data quality.
Does the coordinate in a lookup result prove the city?
No. Each coordinate was compared with the centre of the city the same library named for the same address: the median distance was 0 km for ipwho.is and ipinfo.io and 3 km for freeipapi.com, whose cities are smaller, with a maximum of 12 km. A pin that never leaves its own city record cannot confirm that record. The two answers that did separate, 52.216.0.1 and 108.0.0.1, named Washington and pinned 310 km away in the northern Virginia cluster where those blocks are built.