country-iso
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -20,3 +20,3 @@ 'use strict'; | ||
* @param {Number} lng Longitude of the point | ||
* @return {String[]} Array of ISO 3166 alpha-3 country code for the geographic coordinates | ||
* @return {Promise<String[]>} Promises an array of ISO 3166 alpha-3 country code for the geographic coordinates | ||
*/ | ||
@@ -23,0 +23,0 @@ function getCode(lat, lng) { |
{ | ||
"name": "country-iso", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Get ISO 3166-1 alpha-3 country code for geographic coordinates.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,4 +25,4 @@ # country-iso | ||
// query a point | ||
countryIso.get(42.50779, 1.52109); | ||
// => 'AD' | ||
countryIso.get(42.50779, 1.52109).then(codes => console.log(codes)); | ||
// => ['AD'] | ||
``` | ||
@@ -42,3 +42,3 @@ | ||
Searches for every country which contains the point (lat, lng). | ||
Searches for every country which contains the point (lat, lng). **Returns a Promise** | ||
@@ -45,0 +45,0 @@ #### lat |
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
6114