maxmind / MaxMind-DB-Reader-dotnet

.NET Reader for the MaxMind DB Database Format

Home Page:https://www.nuget.org/packages/MaxMind.Db

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How simply read lat and lon?

giesalabs opened this issue · comments

Hello

using (var reader = new Reader("GeoIP2-City.mmdb"))
{
    var ip = IPAddress.Parse("24.24.24.24");
    var data = reader.Find<Dictionary<string, object>>(ip);
    ...
   what here?
}

i try somthing like:

foreach (KeyValuePair<string, object> author in data)
{
    Console.WriteLine(author.Key+"="+ author.Value.ToString());
}

but the result is anoother dictionary, how get lat and lon?

sincerely giancarlo