id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 2099,Get location information from ip address,Nicklas Nordborg,everyone,"When we create a new login session, we register the ip address in the ""Remote ID"" field. With the help of a service like http://freegeoip.net we could get some information about the actual location of the ip. The service has a simple JSON-based API. For example: {{{ http://freegeoip.net/json/130.235.5.57 ==> { ""ip"": ""130.235.5.57"", ""country_code"": ""SE"", ""country_name"": ""Sweden"", ""region_code"": ""M"", ""region_name"": ""Skåne"", ""city"": ""Lund"", ""zip_code"": ""220 02"", ""time_zone"": ""Europe/Stockholm"", ""latitude"": 55.7, ""longitude"": 13.1833, ""metro_code"": 0 } }}} It is even possible to setup a local server: https://github.com/fiorix/freegeoip The server URL should be specified by an option in base.config and if not set, the location lookup should be disabled. ",enhancement,closed,minor,BASE 3.12,core,,fixed,,