Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 450 Bytes

readme.md

File metadata and controls

27 lines (17 loc) · 450 Bytes

Two10.CountryLookup

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