Skip to content

two10degrees/Two10.CountryLookup

Repository files navigation

Two10.CountryLookup

Build status

Installation

> Install-Package Two10.CountryLookup

Usage

var lookup = new ReverseLookup();

// look up a country by lat / lng
var country = lookup(52.0, 2.0);
Console.WriteLine(country.Name); // "United Kingdon"

var ocean = lookup(0,0);
Console.WriteLine(ocean.Name); // "North Atlantic Ocean"

Creating a ReverseLookup object is expensive, so it's worth keeping it as a singleton.

License

MIT

About

Lookup a country by lat/lng coordinates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages