Info
Version: | 1.0.2 |
Author(s): | Antonio Esposito |
Last Update: | Wednesday, July 5, 2017 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | http://www.tnxconsulting.com |
NuGet Url: | https://www.nuget.org/packages/TNX.FreeGeoIP2 |
Install
Install-Package TNX.FreeGeoIP2
dotnet add package TNX.FreeGeoIP2
paket add TNX.FreeGeoIP2
TNX.FreeGeoIP2 Download (Unzip the "nupkg" after downloading)
Dependencies
- TnxCacheManager(>= 1.1.0)
- MaxMind.GeoIP2(>= 2.8.0)
- SharpZipLib(>= 0.86.0)
Tags
Simple demo:
var ip = "213.140.15.199";
var city = FreeGeoIP2.FindCityOrDefault(ip);
var country = FreeGeoIP2.FindCountryOrDefault(ip);
var asn = FreeGeoIP2.FindAsnOrDefault(ip);
q: [email protected]
This product includes GeoLite2 data created by MaxMind, available from www.maxmind.com.