Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

FreeGeoIPCore

A .NET Core client for accessing IP location details at freegeoip.net.

Installation

To use FreeGeoIPCore in your C# project, you can either download the FreeGeoIPCore C# .NET libraries directly from the Github repository or, if you have the NuGet package manager installed, you can grab them automatically.

PM> Install-Package FreeGeoIPCore

Once you have the FreeGeoIPCore libraries properly referenced in your project, you can include calls to them in your code.

Add the following namespaces to use the library:

using FreeGeoIPCore.Models;

Usage

This is intended for usage in .NET Core projects, there is a limit of 10,000 calls per hour on the API.

An IP address can be looked up and a location object returned by the following method.

        public static void Main(string[] args)
        {
            FreeGeoIPClient client = new FreeGeoIPClient();
            Location location = client.GetLocation({IPADDRESS}).Result;
        }

About

A .NET Core client for retrieving IP address location data from freegeoip.net.

Resources

License

Releases

No releases published

Packages

No packages published

Languages