country-iso
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "country-iso", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Get ISO 3166-1 alpha-3 country code for geographic coordinates.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,9 +19,9 @@ # country-iso | ||
```javascript | ||
const countryCode = require('country-iso'); | ||
const countryIso = require('country-iso'); | ||
// Load a GeoJSON with country boundaries | ||
countryCode.use(require('world-countries-boundaries-1m')()); | ||
countryIso.use(require('world-countries-boundaries-1m')()); | ||
// query a point | ||
countryCode.get(42.50779, 1.52109); | ||
countryIso.get(42.50779, 1.52109); | ||
// => 'AD' | ||
@@ -28,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
6035