GeoIP
=====

.. _GeoContinent:

GeoContinent
------------

geo continent data

.. code-block:: json

 message GeoContinent {
  string code = 1;
  int32 geoname_id = 2;
  map<string, string> names = 3; // Key is language code, value is name
 }

+----------------+-------------------------+-------------------------------------+
| Field          | Type                    | Description                         |
+================+=========================+=====================================+
| ``code``       | ``string``              | Key is language code, value is name |
+----------------+-------------------------+-------------------------------------+
| ``geoname_id`` | ``int32``               |                                     |
+----------------+-------------------------+-------------------------------------+
| ``names``      | ``map<string, string>`` |                                     |
+----------------+-------------------------+-------------------------------------+

.. _GeoCountry:

GeoCountry
----------

geo country data

.. code-block:: json

 message GeoCountry {
  int32 geoname_id = 1;
  string iso_code = 2;
  map<string, string> names = 3; // Key is language code, value is name
 }

+----------------+-------------------------+-------------------------------------+
| Field          | Type                    | Description                         |
+================+=========================+=====================================+
| ``geoname_id`` | ``int32``               |                                     |
+----------------+-------------------------+-------------------------------------+
| ``iso_code```  | ``string``              | Key is language code, value is name |
+----------------+-------------------------+-------------------------------------+
| ``names``      | ``map<string, string>`` |                                     |
+----------------+-------------------------+-------------------------------------+

.. _GeoRegisteredCountry:

GeoRegisteredCountry
--------------------

geo country data

.. code-block:: json

 message GeoRegisteredCountry {
  int32 geoname_id = 1;
  string iso_code = 2;
  map<string, string> names = 3; // Key is language code, value is name
 }

+----------------+-------------------------+-------------------------------------+
| Field          | Type                    | Description                         |
+================+=========================+=====================================+
| ``geoname_id`` | ``int32``               |                                     |
+----------------+-------------------------+-------------------------------------+
| ``iso_code```  | ``string``              | Key is language code, value is name |
+----------------+-------------------------+-------------------------------------+
| ``names``      | ``map<string, string>`` |                                     |
+----------------+-------------------------+-------------------------------------+
