---
title: "GeoIP Country binary database fields"
description: "Reference for each field in the GeoIP Country binary (MMDB) database, grouped by top-level key."
source: "https://44f516d3.dev-site-4ua.pages.dev/geoip/docs/databases/city-and-country/country-binary/"
---

# GeoIP Country binary database fields

The GeoIP Country binary database contains the following fields for each network.
The top-level record for each network is a map containing the keys listed below.
Each key maps to a map. If a key maps to an undefined or empty value, it is not
included in the record.

| Data field name | Type | Data field description |
| --- | --- | --- |
| [continent](#continent) | map | A map containing details about the continent associated with the IP address. |
| [country](#country) | map | A map containing details about the country where MaxMind believes the IP address is located. |
| [registered_country](#registered_country) | map | A map containing details about the country where the ISP has registered the IP block. This may differ from the country where the IP is located. |
| [represented_country](#represented_country) | map | A map containing details about the country represented by users of the IP address, such as a military base or embassy. |
| [traits](#traits) | map | A map containing general traits associated with the IP address. |

## continent

| Data field name | Type | Data field description |
| --- | --- | --- |
| code | string | A two-character continent code like `NA` (North America) or `OC` (Oceania).<br><br>[Learn more about continent codes on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#codes) |
| geoname_id | uint32 | A unique identifier for the continent as specified by [GeoNames](https://www.geonames.org/).<br><br>[Learn more about GeoNames IDs on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#geonames-ids) |
| names | map | A map from locale codes (e.g., `en`, `de`, `ja`) to localized names.<br><br>[Learn more about localized geolocation names on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#names) |

## country

| Data field name | Type | Data field description |
| --- | --- | --- |
| geoname_id | uint32 | A unique identifier for the country as specified by [GeoNames](https://www.geonames.org/).<br><br>[Learn more about GeoNames IDs on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#geonames-ids) |
| is_in_european_union | boolean | This is `true` if the country is a member state of the European Union. This key is only present when the value is `true`.<br><br>[Learn more about the EU flag on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#eu-flag) |
| iso_code | string | The two-character [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) alpha code for the country.<br><br>[Learn more about country codes on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#codes) |
| names | map | A map from locale codes (e.g., `en`, `de`, `ja`) to localized names.<br><br>[Learn more about localized geolocation names on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#names) |

## registered_country

| Data field name | Type | Data field description |
| --- | --- | --- |
| geoname_id | uint32 | A unique identifier for the registered country as specified by [GeoNames](https://www.geonames.org/).<br><br>[Learn more about GeoNames IDs on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#geonames-ids) |
| is_in_european_union | boolean | This is `true` if the registered country is a member state of the European Union. This key is only present when the value is `true`.<br><br>[Learn more about the EU flag on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#eu-flag) |
| iso_code | string | The two-character [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) alpha code for the registered country. |
| names | map | A map from locale codes (e.g., `en`, `de`, `ja`) to localized names.<br><br>[Learn more about localized geolocation names on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#names) |

## represented_country

| Data field name | Type | Data field description |
| --- | --- | --- |
| geoname_id | uint32 | A unique identifier for the represented country as specified by [GeoNames](https://www.geonames.org/).<br><br>[Learn more about GeoNames IDs on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#geonames-ids) |
| is_in_european_union | boolean | This is `true` if the represented country is a member state of the European Union. This key is only present when the value is `true`.<br><br>[Learn more about the EU flag on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#eu-flag) |
| iso_code | string | The two-character [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) alpha code for the represented country. |
| names | map | A map from locale codes (e.g., `en`, `de`, `ja`) to localized names.<br><br>[Learn more about localized geolocation names on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-geolocation-data#names) |
| type | string | A string indicating the type of entity that is representing the country. Currently this is only `military` but may expand to include other types in the future. |

## traits

| Data field name | Type | Data field description |
| --- | --- | --- |
| is_anycast | boolean | This is `true` if the IP address belongs to an [anycast network](https://en.wikipedia.org/wiki/Anycast). This key is only present when the value is `true`.<br><br>[Learn more about anycast data on our Knowledge Base.](https://support.maxmind.com/knowledge-base/articles/maxmind-ip-network-data#anycast) |
