country-iso
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "country-iso", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Get ISO 3166-1 alpha-3 country code for geographic coordinates.", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
"test": "xo && nyc ava --verbose", | ||
"coverage": "nyc npm test && nyc report --reporter=text-lcov > coverage/coverage.lcov && codecov" | ||
"coverage": "nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov" | ||
}, | ||
@@ -26,0 +26,0 @@ "repository": { |
@@ -11,8 +11,17 @@ # country-iso | ||
## Usage | ||
You can query any `(lat,lng)` pair on the earth. It also works for territorial waters and disputed countries. | ||
```javascript | ||
const countryIso = require('country-iso'); | ||
// Query a point. | ||
// Query a point in Italy. | ||
countryIso.get(41.9028, 12.4964); | ||
// => ['ITA'] | ||
// Query a disputed country. | ||
countryIso.get(24, -14); | ||
// => ['ESH', 'MAR'] | ||
// Query a point somewhere in Atlantic Ocean. | ||
countryIso.get(40, -40); | ||
// => [] | ||
``` | ||
@@ -19,0 +28,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5559
50