summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-05-19 03:31:41 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-05-19 03:31:41 +0200
commitf1fce55d2c34520d76b6bc86a815377f1b8de8b6 (patch)
tree59cb37344434c698f3379bbe4da29207727de14e /doc
parentadded inital geo-ip lookup (diff)
added encoding for geo-ip info
Diffstat (limited to 'doc')
-rw-r--r--doc/protocol.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/protocol.md b/doc/protocol.md
index e960506..9c4718d 100644
--- a/doc/protocol.md
+++ b/doc/protocol.md
@@ -53,3 +53,15 @@ The start-time will be processesd and stored with millisecond precision.
....
}
}
+
+In addition to the user-agent string a client entry may have the following geo-info
+fields (all of which might be omitted):
+
+ "country" ......... the name of the country
+ "country-code2" ... the 2-letter country code
+ "region" .......... the name of the region
+ "region-code" ..... the 2-letter code for the region as defined by the
+ MaxMind GeoIP2 database
+ "city" ............ the name of the city
+ "latitude" ........ latitude in ° as float value
+ "longitude" ....... longitude in ° as float value