Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 604 Bytes

readme.md

File metadata and controls

29 lines (18 loc) · 604 Bytes

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