{"_id":"geojson-places","_rev":"8-338fd40b219145d4ee5c2c8c6709c8ff","name":"geojson-places","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"_from":"geojson-places","_location":"/geojson-places","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"geojson-places","name":"geojson-places","escapedName":"geojson-places","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"This module takes a latitude and longitude and determine the location where it is contained (continent, country, region and state). This module also has tools to get i18n names of continents, country groupings, countries, regions and states.","devDependencies":{"@babel/core":"^7.14.6","@babel/eslint-parser":"^7.14.7","@turf/turf":"^6.4.0","cli-color":"^2.0.0","i18n-iso-countries":"^6.8.0","iso3166-2-db":"^2.3.7","tap-spec":"^5.0.0","tape":"^5.2.2"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-1","iso-3166-2","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.0","dependencies":{"just-clone":"^3.2.1"},"_id":"geojson-places@1.0.0","_nodeVersion":"15.3.0","_npmVersion":"7.0.14","dist":{"integrity":"sha512-aSWCf/I602zfP+/N5+DHhs//Ba5FOr1SszCc33daPmiAegRLAPqB9JBCVReBPeXMQgysyB8GJeMfPPDj+gLLMg==","shasum":"64c8e31288837a755980d1d8b1d6bf6f1ec7f788","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.0.tgz","fileCount":4801,"unpackedSize":282038609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4snXCRA9TVsSAnZWagAAQg8P/2nH6ZEDmJBUCkZHOepL\nfbUEA77LOYek5q6sHuHQhvcHWWsbE5joH63x5khFGXdYYHQWkiLkGVHiT1Yb\n2+ucJ0aKPI3yq0aE8+6yj5iNTgdxk4Oc5S/JXNR6hHc3DtQ7+DD9CHc0RWCy\n1RL/Wekq/YOROXKPzvxR1HNbvnrKgLUjGhZzoHYgaepOLgKyUTwNbN6h7OFz\nJYbtoaQWe0pxsGSvdJa6PGDYGatRBhdkBxp7qQ92xKdPM5qg2COmyv8a0sy3\nSXGg/mpMyFtcjPpE/LYPzvvdgnR9cep14A1Par9r/MFblsK3isiHPiT1D9xy\nHCOhd3d2j80MqIEVA9cAqdWzJx/f0Fy58enSED9unXHxpSM484k1j0cQvhUz\nXgCQaPmDYrfxkrUtD1QLQKxB5LPAICzm2VzShsVhQw6vd1lGBlPr4F+ho3hm\nmfaJGXQIK+ohZWfBG2G5mfcv2b3+uLVXaU8DsN/vbzFstff+zrzQnhFVFKDZ\nEaqoiGgfZQphpfJAFrWhY+OlGxhiib4nNYhtbszx9l0av/yarmi8ZymK6i+o\nZKPvtNxpGnJ23/sef9DiQl1DigIc3U4ezPwUfzXIAx+ShQw5/Gv3ZPC+j1Pr\nXa+1itbfEq+y0Y4TgVkYEUdKUzXDfhvZzLP+dZxmcaHzNWHzHIQNPNQf+ZqL\nEotc\r\n=8L3y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDN4daUOO7v4NgOcKyGcW1vpeg0cht/MFmFo+RyiUHfvAiEAiQsSjcTC+gkh9J4zr9dNC8cxYV1HbWWTvqz1CSGKrKk="}]},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.0_1625475541216_0.11104879906396747"},"_hasShrinkwrap":false},"1.0.1":{"_from":"geojson-places","_location":"/geojson-places","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"geojson-places","name":"geojson-places","escapedName":"geojson-places","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","devDependencies":{"@babel/core":"^7.14.6","@babel/eslint-parser":"^7.14.7","@turf/turf":"^6.4.0","cli-color":"^2.0.0","i18n-iso-countries":"^6.8.0","iso3166-2-db":"^2.3.7","tap-spec":"^5.0.0","tape":"^5.2.2"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-1","iso-3166-2","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.1","dependencies":{"just-clone":"^3.2.1"},"gitHead":"3a389e9c074c3b5e33e115a88e1dfa371dc06677","_id":"geojson-places@1.0.1","_nodeVersion":"15.3.0","_npmVersion":"7.0.14","dist":{"integrity":"sha512-yiTflCPi1D8balAVenwWCJrbKDWMghh/79iEzFgjWch5FuWNhDTAOPua6lUhCJTlEfnvwAVkmFhv3417xVAwdQ==","shasum":"928ffdf52f1a13111578e3305aefa88ae598f724","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.1.tgz","fileCount":4801,"unpackedSize":282038887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4usPCRA9TVsSAnZWagAAmCUP/26gicSLsItlJVEEMfqx\n61hDfEHQ/hfF7e2cBR4VMd1EDQ9t+pLaSR6uAGgTAdk365s7jYse0/9z8JXp\n/V6/nCyh3S76xsEJHUkkWE14IdlQYa5v5qcShptiSNqJU4qGaseNG7sZlJ1T\ntj6o6pnJRIPdCVEhe7Zvfb1BWO5QbZ5k1xYbs6QY/ckq4g4U6XnC8dZenCXD\noMHJfR2cqoO3+T/HgC6pkM+Ivsq0uN1CjWhpvWa/oS3HrvFYL5TJTs3nZrlR\nZeUEe2Lu6fFabrDUMKndvJuZ5wAAWITrl/+aGi8sOZXF30pWrpGH9K6kCjmn\nGqbQp0ediCxdgQC4jNxM1RsEBWWgaBLQ/c7do/I8TUweM9efSHNOmPI5oNoM\nSwGF55WoPAr9jni8nAGCTgf4kpaBcLyd1Bz4KvqyTCPJU49t6H49Akj/Qf9a\nGgmSO7xAJLp45xVPVAbQ5/pleO484iLN9A7vESkUyQpG8SpybugU1Xe9BGtI\n4ptqMudDNv1vSBYQyJe18kPNJcKAO9AeXtkPUo839LZoKba/EOX43fk8hbt0\ncjKycQNPWsqCwDEChuyO6Z49MDcCCW7XzQQ2054GuFxMuNm5mi9K3bOULmu7\nJERQ1N291isa7Xw6nT5CajBKtyXM6tmIWvkFTgQF0438zyRlqT5exFSGtZ2i\n+fhx\r\n=G2oz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/WzyuZh3A0EQ02KPzsa37eIEwFzu2m9F1/PICCLI1dAiBL2iCKHZRAZEj1zbh/1+l+Z1cnTVIbaDKsTTHdUOr5Cw=="}]},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.1_1625484045670_0.768031655992993"},"_hasShrinkwrap":false},"1.0.2":{"_from":"geojson-places","_location":"/geojson-places","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"geojson-places","name":"geojson-places","escapedName":"geojson-places","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","devDependencies":{"@babel/core":"^7.14.6","@babel/eslint-parser":"^7.14.7","@turf/turf":"^6.4.0","cli-color":"^2.0.0","i18n-iso-countries":"^6.8.0","iso3166-2-db":"^2.3.7","tap-spec":"^5.0.0","tape":"^5.2.2"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-1","iso-3166-2","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.2","dependencies":{"just-clone":"^3.2.1"},"gitHead":"5cfda6c3fa93ae34418e060c3e55697b19b6696d","_id":"geojson-places@1.0.2","_nodeVersion":"15.3.0","_npmVersion":"7.0.14","dist":{"integrity":"sha512-mrSD93JtQeWbi6EXUF92FKRqtaOzQzTT6TEFKlJBo8qEt6+VBCuHriC1f8UBg6uiNRxwW4e4Icnsk4DlvgKBEw==","shasum":"6f1521504a9a0f2b1fbddcad24c48152db282e35","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.2.tgz","fileCount":4801,"unpackedSize":282045486,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg41J3CRA9TVsSAnZWagAAmCkQAI2N8zp5YHx2yKNS5Enj\no2mmRLyiqi3DoRDUjQ1Maf14WwBLG359eQYpFuY3zUNZUoFfCYugvuqUXIu1\nUGzPH7Ch06kSeh3tCbTK0BQbPnR9TCnx240C6QO14PbMAA3+iaS05xFSmyAX\nPBFlwvEyqSWL2U8uHiDTCf9DF/klSgja5gKbg3dzfXRIte6199NO9xMwkFrD\n5xX9KwL70zqNJKW++ahDcZED3JGJWXHALYBvEwHCWJUZ0AqWnl3ZUN2D8y5a\nYomkGuQvtj0EofXHhOUSBKNUqvuxAyBYWQY+S2kBtk+b9wea3IXJHGx1dmGz\nhxmW90xUay752sLP/aAFAsiN1ImKqXE05wda/FNWdOszGpIcuQV3ELXml18l\nN4lZvbFr//+1Jgq2CPM7rqUZDGH9BHp4gIKT5FkikUP0DwKrfN3s0kW+FzYj\nESXMIv2fzCq5yHQoOuOFMJGnpgLISjrPOnbOoVSifEFEYuXBZ1P5IGLOk8j6\nW7P45UblXTY8E9l5SJ5l0EbE5fTRP+s7Bco4f61eYLM1PjpC3kOtN7eAeTZJ\ngIL/eT/Ezq4qmZij54/lH3rblOkgUbPEEUFeS8jhCsUYAnRmVgbJDUUEfNGY\nZCAsgj7GrdBeLrgA1UQI/XxsfSmluot3xJ64bTZnHgU4WM0jDQeADNiiqpKk\noct/\r\n=VBrd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEscZzAdowC6a2rcu+DWmLufwpLXUtcbjE1dq1McwBOsAiEAvXV7jXIl8JcVAOe3q6sEmVdUB5rFg0dtG6yVTeGAZVU="}]},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.2_1625510517884_0.15356463233566275"},"_hasShrinkwrap":false},"1.0.3":{"_from":"geojson-places","_location":"/geojson-places","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"geojson-places","name":"geojson-places","escapedName":"geojson-places","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","devDependencies":{"@babel/core":"^7.14.6","@babel/eslint-parser":"^7.14.7","@turf/turf":"^6.4.0","cli-color":"^2.0.0","i18n-iso-countries":"^6.8.0","iso3166-2-db":"^2.3.7","tap-spec":"^5.0.0","tape":"^5.2.2"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-1","iso-3166-2","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.3","dependencies":{"just-clone":"^3.2.1"},"gitHead":"43a44dda35ddc1f2178682718e0a6cb3aab4d8b2","_id":"geojson-places@1.0.3","_nodeVersion":"15.3.0","_npmVersion":"7.0.14","dist":{"integrity":"sha512-KQ6FGWvHa6YnlXI2MKtztb1ZHGlhMXPazRxhUvRGaS/okMAzis7rfcoUTNWI1uOrrrMYJlj+Q49d5cH4EuaWjw==","shasum":"86762f6bd9fd992a98dec99746a7c7769633f958","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.3.tgz","fileCount":4801,"unpackedSize":282050972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7Y3RCRA9TVsSAnZWagAArMQP/Rxvm3bf5aS0Cv67/ccn\nAgvq49JeMiWZ2McaHzgotgdwX5KocSUZJ2TL0W7eU3f9snKcz0BQ3JFs4tIM\nOo58dlb+r2z7WVc65YFClJ9xkMDqMZWXP4qr+O1lLfX2nTa2F1OBAmxCytRz\n2IZh2SFNjJ89clDGEI3xiCQrL9OTyiRc7aU+8tz+N3Vg9iQtZSxhujTISdhL\n/1eXCEuuI1Vkyp0ImfsdTUYvSdwUjaJJ8+R4yYUgF9gAzaR2JsKCl7pVpz1f\nwO+Y4Gfsmo+GFonqc/Wc4DCBi+DsURf/SrJyFLkdnnkinEi4ODUWCtXn5kE4\nZ0G2lB8LaCltQV5V94Z5sywhteKXvU3QVwhjCuyzD9rA124ms4SM5OJiKAnJ\nBjWk+8YbXXG+5F5wPqGNWERm6QISRmOoyszBxxYks0QFjKgwdlxTvGS4p3En\nS51jlWBUtH+tyN5CDYS/I3rlzHEGRUcA1TlGIBvFN2iQhKAeK2w5c+giPIjE\nqWxGhOXtWxf2J+JmA1etb5n8nRlfeItoLM7cKHHomwI8gOTrTCXOLiTr4J8j\nhgKm9nBDG5s+nsvFyf4T61HEY8zEdP0hDXZGLfvT8blCZV2zBzCv3iiiq43H\n3x3SwqPy/Dcahri8yxLWIHu2chWnecodHtnCaYd/uNmeiyDvpaEibgz1WNqR\n6Gdk\r\n=ydTe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYEBR9WOSPFP/PBiXU0CXLX7a9v7XVHHSHm3RezfM51AiEA71Y4b6BakUzvnhefc5REJsIrlo/8ozoegjjNNl0AF4g="}]},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.3_1626181071355_0.8702444422058646"},"_hasShrinkwrap":false},"1.0.5":{"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","devDependencies":{"@babel/core":"^7.14.6","@babel/eslint-parser":"^7.14.7","@turf/turf":"^6.4.0","cli-color":"^2.0.0","i18n-iso-countries":"^7.5.0","iso3166-2-db":"^2.3.7","tap-spec":"^5.0.0","tape":"^5.2.2"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-2","iso-3166-3","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.5","dependencies":{"just-clone":"^6.1.1"},"gitHead":"ba4baa5db319f2e4d68465601a3d087addee4205","_id":"geojson-places@1.0.5","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-+b3snII3GBBI3Ag5elW8xiYo/nx1+2r1KBZ+Aub4aU+VQWamkgnSqg4ZVKKCX9ApBQLLgDYe7CTcQTEoTCERUg==","shasum":"2a9e921f0f8d26d6a94bdf7d9941576f63c343bf","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.5.tgz","fileCount":4804,"unpackedSize":287089036,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxr0fR5XKgbhPN0WS5/Cws3c2ohshq5YPSaz8T+nWToAIgLrVyDBHcgWvu6oL98FDqCZJ5ABXzn0qWoqYuv+Hqc2w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkH93ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBkBAAmFnQHtJ35sRQHX/5qjQl5EFvwTWUltCDA7/o2kkBszs6hKFK\r\nFI3bxE6Ip3yuLnUjuraH3oxaEepTFvBfU51IPxeiSakoY50bN/nw6chO6Zej\r\nmWETuEIIjXvGWilsmq/2ueUlaZN/GeHUc5uwInoApGCuF/s/+35WD8R7BnOh\r\nIhjupcLyA9cqmHv3H/NNuUC6js3WpTQ1eAS10AalJilteCFF/5hw0qdhyBEP\r\nfXFRmjV2XN2tloCLH7vQH2le8rB0idcCa6Qo2MfKF1ISfePjOsIPDz8d/cSA\r\ngfAgr6eNVjqxTrgh+oiV3YlAkW80F0DBHbV4Elm1+f5pW9yMIzQY0lbe45AQ\r\n5svkXG97xUBzMFP5Lk5tSEWkUJz0Y8oBI3q5uxTItPYBPn7sAKA0tvjFZoNs\r\nnbjgDJOzE8HZ0P30u+0EY37arhvAcA2z0Yva6LGsSx0Z687cznBSIoQmNsTR\r\nyxmcrsakuHMbPIqYVAV6AY4ixAoSKrb3RPNZGXHwzXSZFhsSESvRjBAmOsFM\r\njqDHmRGaldg/K45sILmQKFCwej7QyMyPrKiQh7UW+14k4rZYuFor8vR2Z8C4\r\nJQaj/Gg848Y1T3aqq5qack8ZX+gRoaYxDoQbe5RNcRofAjHd2uxHGTSIlVVG\r\nOzEwGZ0ceqsf0sMYQRnyqZWgoR4VELUe1jU=\r\n=ADaz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.5_1670414198328_0.8397342007938184"},"_hasShrinkwrap":false},"1.0.6":{"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","devDependencies":{"@babel/core":"^7.14.6","@babel/eslint-parser":"^7.14.7","@turf/turf":"^6.4.0","cli-color":"^2.0.0","i18n-iso-countries":"^7.5.0","iso3166-2-db":"^2.3.7","tap-spec":"^5.0.0","tape":"^5.2.2"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-2","iso-3166-3","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.6","dependencies":{"just-clone":"^6.1.1"},"gitHead":"bd95352d1d55c0265249180cab0600a5ccfb6f77","_id":"geojson-places@1.0.6","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-OIgqtYjlodY/A1XDJ+8NKEWRRm24NNtKXAVurtur0h2fVySW7eeEh9VGQfUEAfSEjrWDXbF33YRBTTdoea4xLw==","shasum":"e220bb2fa90289a1c471bea3d3a1cca618d99f84","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.6.tgz","fileCount":4804,"unpackedSize":287089100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCB1EMIegDXRbruRATOTV9pd8zPWXu5sK1R8Lpegg0WkQIhAKC4sA4qd+2SCDXIJj+sJNfxygDZ64roJ/X6nDzornL0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkJbYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpY8w//ZadzTYAjXkXiYtfozgGEky80h4gpDfOvcYHUEMU2ft+bRSXA\r\nYtG++4mhuWYzz6UP5EmixgfIW57ETt5JucubYL2scoEIOdNf0GfjEzIkCFcB\r\nahrcrR8tcA0Ol1jGwRg6KSa4cH29CgDrAm9Ip3DpPgUcc9fCPVBcdqwaAi29\r\nrZYiboC1fTg958bF81TuJPV6XcZ3R0gDC9gTiMIKY/zPjage/uFMGk4ODgkO\r\nWgDjeEjDmi4M9/eFuQAtziy0zqHxySm1EnvupTzFGsQo4Xnd2f2m0XMplG1Q\r\nL26H4+4FOGSEL7UkCqGeQQomy7Xi3l++f7+GmyCcXCTMiJ2YKxJVBj1SyYFD\r\nbfYmd7ntI2zjfdDNNyfvFl7vJzesi0fhucp3gVmKgGNhG4ubOBriadR6Xr75\r\nVvUSo+vTWj+MRAU9MCIYu8taLyELhSfNvZ2KVPdXUNkv7IigYfatTofd6Vpb\r\nYHGdsHk1oDjAog4xzAoccEJFDwYqkP481QnBt6y+lFiJqBfZxU9zS1Y+btrQ\r\n7RKFgXR/SyCONI/z0q4katHd06SiTZEPLNzmCp5RIIHyapmSYOpdpVErtlqE\r\nFEIi8VFz0/eqgyp9yPC1yEr7U4ajW9HaIXS1CTW5QAMn7ZJvPUBK9jFN/6Mf\r\nCDrutcqpS/BWon5aaqBJpRZqt79W2ONmQTQ=\r\n=+kKE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.6_1670420183504_0.5716171049517438"},"_hasShrinkwrap":false},"1.0.7":{"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","devDependencies":{"@babel/core":"^7.20.12","@babel/eslint-parser":"^7.19.1","@turf/turf":"^6.5.0","cli-color":"^2.0.3","i18n-iso-countries":"^7.5.0","iso3166-2-db":"^2.3.10","tap-spec":"^5.0.0","tape":"^5.6.3"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-2","iso-3166-3","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.7","dependencies":{"just-clone":"^6.2.0"},"gitHead":"bd95352d1d55c0265249180cab0600a5ccfb6f77","_id":"geojson-places@1.0.7","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-J9XodBd8fkn9vlcUNO2uqAOhOl9CPhXDL3OvC74PEABoYdSRueg+s2QHWfeNgp5+l3XkgPog5VVa8qVexzwM6w==","shasum":"ddcc96db5986964a4f13e9593775bfcf7a80bb7f","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.7.tgz","fileCount":4804,"unpackedSize":287089785,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3PRSpgiV4B3NjC9rbdmD0Jdi9aom+OA8N6l1k3sE2ewIgOzCHdgINuYBZfU2vjCqAo3gdrTSlmL8mkp6XOcJyrvo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5MsQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2/A//UHJmbxEnoNIwfp6p/n1CYAJZOzXT6RvdbyRARfg0N+l5Nrz/\r\ntncPOYgsXlvczisXsqetMuHni16YJRoxfY3GSoGioJbjZO7CFD+zmI8Vxzjg\r\nm+BXZSjWd1XCG2YXoP8qoqiMFFRqcFHjrEvTethUiSx8tvgEW/k2HTPzNF4L\r\nMNtGr7CM7OZpriwgfQow9tKbTW51Ipou+J8gvKDAcb76tQlJw/1vTnwQ48Dg\r\nq+ErfTXqoU48BS5It6X+Q+bjhcJnrZI12U/HItoFKJzs1ZK1gAxIW4z1mznc\r\nGip8bRDcIZqNQmOIIRdJOfWihCUavY2Oigt8j0c79dx9YhZUWFwJ26OMA7aw\r\n5MdMDVT6OBW1ordKCdVJoIQnnb2qv+2vqLK2fxF+9HTJbW/KvxAcR8GDYoHB\r\neQ6xL5wRxlWKJdTz7epyYmMo2/NLRnY7Na2SJPceKI4X/l6o01m6bqjeA4Sv\r\neIuZHdRBr+5IMCLPqmMFYMbQqxfgvtHVkjl5h1pkc03pCxnFFnngLtr+00uO\r\nwNp/X61WzDy9iaALR4hR0Yl7bAms9Zbr53+oKRNbyy1AG1/R5E1xk+v6nZEV\r\ncHchoHRSJHq8EzakPmoAdi6FPOo+OD6A5JUlY8k7YqtdrR7VlBE+7nO2WksT\r\nnP+wG93HyGQBt9Kfilw3nGBnIbSCyZ3yYfM=\r\n=XdwS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.7_1675938574577_0.08998840686400711"},"_hasShrinkwrap":false},"1.0.8":{"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"deprecated":false,"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","devDependencies":{"@babel/core":"^7.21.4","@babel/eslint-parser":"^7.21.3","@turf/turf":"^6.5.0","cli-color":"^2.0.3","i18n-iso-countries":"^7.5.0","iso3166-2-db":"^2.3.10","tap-spec":"^5.0.0","tape":"^5.6.3"},"homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-2","iso-3166-3","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"license":"ISC","main":"src/index.js","name":"geojson-places","repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"scripts":{"test":"tape ./test/*spec.js | tap-spec","build":"node ./src/build.js","lint":"eslint . --ext .js"},"version":"1.0.8","dependencies":{"just-clone":"^6.2.0"},"gitHead":"81a55685c52329dff430d4a9a0e31fc2461ab44f","_id":"geojson-places@1.0.8","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4jqzFgpz9S3QZ9KsDTvokuf3qCygfhgYlBaVHhGt27bI9uzvbxacFz19qxGui1WUAwYXj39IZdtATsQ1ggtlOQ==","shasum":"7022275e8e5e25ba5dc92191e4757c720a59903f","tarball":"https://registry.npmjs.org/geojson-places/-/geojson-places-1.0.8.tgz","fileCount":4804,"unpackedSize":287089803,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbdR6MnaEXfEyHyuDStoRQeYHeKYZjN0CimRUT0WyRPAiEA3zEJhieh5oJ0c433pi6Qu1ZHSyX1QyUkyGcbAaqrjrA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKJ/tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzNg//cUUl5/yIyQ334cOTrA+JCIDlMXu877jHZUPUwItgG/eWCwcg\r\nPV/SY/S9ZH5Z/Om1MwcBcodXU37PyyEEGvM8i4ggmLQNVYLvTJ/iNnM7Uoca\r\nZ0jJtjbtsVqevMcMjXn1fRos2A7Vbu6I6XRmLD9Hq7RaTqFYGbwKcWsDkrcf\r\n21bQXqyWWkLjx5e8uJQIaZaTolrCp6FwMZurG1QERJjFAj/whmPP2kQWeY2/\r\nyERkQ+QO9sDc4SUqbHOlF4/3s0jYgrXoZpzS7M1TCuACm8PI+W5rT+wfBIVT\r\nAOtKgTJIno682OqWm0iiKD8S6k25XXeLgJeYkxwR6BNf96tylTbnXIFLCY8S\r\n0fmoSaheXUzBdBeGS8fZR494JVMf9VCLLWx/PDRL7lHr7rZzYwXV/MHKr6Mi\r\nresypufy9QF5Zyt9hojJ15WZ6FI0n/pFg6HxPNgVdugM6rTYowqOUCEpaK/X\r\n13KEgWJncqg7qcoHpknc1w8cT3LJ/7P3seogsFjocgzTtomachPngt6dHMi0\r\n8zlXx8TG3DrRZOTji19mIU+UKAs+TjKWa66GgeVmxTCKQn/t/1nFw8/sJWEd\r\nmXIL/BzF2bjrFXFPw9PcEvflASBerINzdq6mjL46FJhrC+hQu4pajcGFEDb/\r\nasL+F3QPrpJqrVNBWtqY9NjC2WkN4QTN8Rg=\r\n=Qf7y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rapomon","email":"rapomon@gmail.com"},"directories":{},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-places_1.0.8_1680383980104_0.9006774960479824"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-05T08:59:01.215Z","1.0.0":"2021-07-05T08:59:03.367Z","modified":"2023-04-01T21:19:43.507Z","1.0.1":"2021-07-05T11:20:47.203Z","1.0.2":"2021-07-05T18:41:59.406Z","1.0.3":"2021-07-13T12:57:52.974Z","1.0.5":"2022-12-07T11:56:39.766Z","1.0.6":"2022-12-07T13:36:24.931Z","1.0.7":"2023-02-09T10:29:36.051Z","1.0.8":"2023-04-01T21:19:41.955Z"},"maintainers":[{"name":"rapomon","email":"rapomon@gmail.com"}],"description":"Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in ","homepage":"https://github.com/rapomon/geojson-places","keywords":["local","reverse","geocoder","geolocalizer","geocoding","i18n","l10n","iso-3166-2","iso-3166-3","continent","country","country grouping","region","state","geojson","polygon","latitude","longitude"],"repository":{"type":"git","url":"git+https://github.com/rapomon/geojson-places.git"},"author":{"name":"Raúl Polanco Montiel","email":"rapomon@gmail.com","url":"https://github.com/rapomon"},"bugs":{"url":"https://github.com/rapomon/geojson-places/issues"},"license":"ISC","readme":"# geojson-places\r\n\r\nThis module can do the following tasks:\r\n\r\n* Reverse geocoding to determine the state, region, country, country grouping or continent where it is contained from the latitude and longitude specified.\r\n* Get a list of continents with code and name localized, also a list of iso-3166-2 country codes contained in each continent.\r\n* Get a list of country groupings with code and name localized, also a list of iso-3166-2 country codes contained in each continent.\r\n* Get a list of countries with iso-3166-2, iso-3166-3 and name localized.\r\n* Get a list of regions of the country specified with code and name localized.\r\n* Get a list of states of the region specified with code and name localized.\r\n* Convert iso-3166-2 country codes to iso-3166-3, and viceversa.\r\n* Check if a continent code, country code, country grouping code, region code or state code is valid.\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install --save geojson-places\r\n```\r\n\r\n## API implementation\r\n\r\nI have prepared a complete implementation of the library to consume from a Node based API [geojson-places-api](https://github.com/rapomon/geojson-places-api), as an example or to deploy in a production environment. The API is developed with the [Fastify](https://www.fastify.io) framework.\r\n\r\n## Methods\r\n\r\n### lookUp(latitude, longitude)\r\n\r\nReverse geocoding to get the region info from latitude/longitude arguments.\r\n\r\n```javascript\r\nconst { lookUp } = require(\"geojson-places\");\r\n// Reverse geocoding to get the region info of Valladolid (Spain)\r\nconst result = lookUp(41.652349, -4.728602);\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  continent_code: 'EU',\r\n  country_a2: 'ES',\r\n  country_a3: 'ESP',\r\n  region_code: 'ES-CL',\r\n  state_code: 'ES-VA'\r\n}\r\n```\r\n\r\nGet null from a latitude/longitude in the middle of the sea:\r\n\r\n```javascript\r\nconst { lookUp } = require(\"geojson-places\");\r\nconst result = lookUp(0.0, 0.0);\r\nconsole.log(result);\r\n// null\r\n```\r\n\r\n### lookUpGeoJSON(latitude, longitude)\r\n\r\nReverse geocoding to get the region geojson from latitude/longitude arguments.\r\n\r\n```javascript\r\nconst { lookUpGeoJSON } = require(\"geojson-places\");\r\n// Reverse geocoding to get the region geojson of Monaco\r\nconst result = lookUpGeoJSON(43.73828, 7.42542);\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  \"type\": \"FeatureCollection\",\r\n  \"features\": [\r\n    {\r\n      \"type\": \"Feature\",\r\n      \"properties\": {\r\n        \"continent_code\": \"EU\",\r\n        \"country_a2\": \"MC\",\r\n        \"country_a3\": \"MCO\",\r\n        \"region_code\": \"MC-MC\"\r\n      },\r\n      \"geometry\": {\r\n        \"type\": \"Polygon\",\r\n        \"coordinates\": [\r\n          [\r\n            [ 7.43745, 43.74336 ],\r\n            [ 7.42625, 43.75546 ],\r\n            [ 7.40697, 43.76351 ],\r\n            [ 7.38754, 43.75790 ],\r\n            [ 7.37266, 43.74583 ],\r\n            [ 7.36726, 43.73412 ],\r\n            [ 7.36575, 43.72273 ],\r\n            [ 7.38072, 43.71927 ],\r\n            [ 7.40432, 43.71797 ],\r\n            [ 7.41796, 43.73090 ],\r\n            [ 7.43285, 43.73985 ],\r\n            [ 7.43745, 43.74336 ]\r\n          ]\r\n        ]\r\n      }\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n### lookUpRaw(latitude, longitude)\r\n\r\nReverse geocoding to get the raw data from latitude/longitude arguments.\r\n\r\nThis is the original data retrieved from [Natural Earth Data](https://www.naturalearthdata.com/downloads/10m-cultural-vectors/) without process and clean it.\r\n\r\n```javascript\r\nconst { lookUpRaw } = require(\"geojson-places\");\r\n// Reverse geocoding to get the region geojson of Monaco\r\nconst result = lookUpRaw(43.73828, 7.42542);\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  \"type\": \"FeatureCollection\",\r\n  \"features\": [\r\n    {\r\n      \"type\": \"Feature\",\r\n      \"properties\": {\r\n        \"adm0_a3\": \"MCO\",\r\n        \"adm0_label\": 5,\r\n        \"adm0_sr\": 5,\r\n        \"adm1_code\": \"MCO+00?\",\r\n        \"admin\": \"Monaco\",\r\n        \"check_me\": 20,\r\n        \"code_hasc\": \"MC.MC\",\r\n        \"cont_code\": \"EU\",\r\n        \"cont_name\": \"Europe\",\r\n        \"datarank\": 10,\r\n        \"diss_me\": 10107,\r\n        \"featurecla\": \"Admin-1 aggregation\",\r\n        \"geonunit\": \"Monaco\",\r\n        \"gn_a1_code\": \"MC.00\",\r\n        \"gn_id\": 3319178,\r\n        \"gn_level\": 1,\r\n        \"gn_name\": \"Commune de Monaco\",\r\n        \"gu_a3\": \"MCO\",\r\n        \"iso_3166_2\": \"MC-X01~\",\r\n        \"iso_a2\": \"MC\",\r\n        \"labelrank\": 20,\r\n        \"latitude\": 43.7461,\r\n        \"longitude\": 7.39979,\r\n        \"mapcolor13\": 12,\r\n        \"mapcolor9\": 2,\r\n        \"max_label\": 18,\r\n        \"min_label\": 18,\r\n        \"min_zoom\": 18,\r\n        \"name\": \"Monaco\",\r\n        \"name_ar\": \"موناكو فيل\",\r\n        \"name_de\": \"Monaco-Ville\",\r\n        \"name_en\": \"Monaco-Ville\",\r\n        \"name_es\": \"Mónaco\",\r\n        \"name_fr\": \"Monaco-Ville\",\r\n        \"name_hu\": \"Monaco\",\r\n        \"name_it\": \"Monaco Vecchia\",\r\n        \"name_ja\": \"モナコ・ヴィル\",\r\n        \"name_ko\": \"모나코빌\",\r\n        \"name_len\": 6,\r\n        \"name_nl\": \"Monaco-Ville\",\r\n        \"name_pl\": \"Monaco-Ville\",\r\n        \"name_pt\": \"Monaco-Ville\",\r\n        \"name_ru\": \"Монако\",\r\n        \"name_sv\": \"Monaco-Ville\",\r\n        \"name_tr\": \"Monaco-Ville\",\r\n        \"name_zh\": \"摩纳哥城\",\r\n        \"ne_id\": 1159315589,\r\n        \"region_code\": \"MC-MC\",\r\n        \"region_name\": \"Monaco\",\r\n        \"sameascity\": -99,\r\n        \"scalerank\": 10,\r\n        \"sov_a3\": \"MCO\",\r\n        \"wikidataid\": \"Q55115\",\r\n        \"woe_id\": 23424892,\r\n        \"woe_name\": \"Monaco\"\r\n      },\r\n      \"geometry\": {\r\n        \"type\": \"Polygon\",\r\n        \"coordinates\": [\r\n          [\r\n            [ 7.43745, 43.74336 ],\r\n            [ 7.42625, 43.75546 ],\r\n            [ 7.40697, 43.76351 ],\r\n            [ 7.38754, 43.75790 ],\r\n            [ 7.37266, 43.74583 ],\r\n            [ 7.36726, 43.73412 ],\r\n            [ 7.36575, 43.72273 ],\r\n            [ 7.38072, 43.71927 ],\r\n            [ 7.40432, 43.71797 ],\r\n            [ 7.41796, 43.73090 ],\r\n            [ 7.43285, 43.73985 ],\r\n            [ 7.43745, 43.74336 ]\r\n          ]\r\n        ]\r\n      }\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n### getContinentGeoJSONByCode(continent_code, simplified = false)\r\n\r\nGet geojson continent by continent code.\r\n\r\nA simplified version can be retrieved if `simplified` argument is `true`.\r\n\r\n```javascript\r\nconst { getContinentGeoJSONByCode } = require(\"geojson-places\");\r\n// Get the continent geojson of Europe\r\nconst result = getContinentGeoJSONByCode('EU');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  type: 'Feature',\r\n  properties: {\r\n    continent_code: 'EU'\r\n  },\r\n  geometry: {\r\n    type: 'MultiPolygon',\r\n    coordinates: [\r\n      [ 7.43745, 43.74336 ],\r\n      ...\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### getCountryGeoJSONByAlpha2(country_a2)\r\n\r\nGet geojson country by `iso-3166-2` code.\r\n\r\n```javascript\r\nconst { getCountryGeoJSONByAlpha2 } = require(\"geojson-places\");\r\n// Get the country geojson of Spain\r\nconst result = getCountryGeoJSONByAlpha2('ES');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  type: 'Feature',\r\n  properties: {\r\n    country_a2: 'ES',\r\n    country_a3: 'ESP'\r\n  },\r\n  geometry: {\r\n    type: 'MultiPolygon',\r\n    coordinates: [\r\n      [ 7.43745, 43.74336 ],\r\n      ...\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### getCountryGeoJSONByAlpha3(country_a3)\r\n\r\nGet geojson country by `iso-3166-3` code.\r\n\r\n```javascript\r\nconst { getCountryGeoJSONByAlpha3 } = require(\"geojson-places\");\r\n// Get the country geojson of Spain\r\nconst result = getCountryGeoJSONByAlpha3('ESP');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  type: 'Feature',\r\n  properties: {\r\n    country_a2: 'ES',\r\n    country_a3: 'ESP'\r\n  },\r\n  geometry: {\r\n    type: 'MultiPolygon',\r\n    coordinates: [\r\n      [ 7.43745, 43.74336 ],\r\n      ...\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### getCountryGroupingGeoJSONByCode(grouping_code, simplified = false)\r\n\r\nGet geojson country grouping by grouping code.\r\n\r\nA simplified version can be retrieved if `simplified` argument is `true`.\r\n\r\n```javascript\r\nconst { getCountryGroupingGeoJSONByCode } = require(\"geojson-places\");\r\n// Get the country grouping geojson of EMEA\r\nconst result = getCountryGroupingGeoJSONByCode('EMEA');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  type: 'Feature',\r\n  properties: {\r\n    grouping_code: 'EMEA'\r\n  },\r\n  geometry: {\r\n    type: 'MultiPolygon',\r\n    coordinates: [\r\n      [ 7.43745, 43.74336 ],\r\n      ...\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### getRegionGeoJSONByCode(region_code)\r\n\r\nGet geojson country region by region code.\r\n\r\n```javascript\r\nconst { getRegionGeoJSONByCode } = require(\"geojson-places\");\r\n// Get the country region geojson of Castilla y León (Spain) with region code ES-CL\r\nconst result = getRegionGeoJSONByCode('ES-CL');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  type: 'Feature',\r\n  properties: {\r\n    country_a2: 'ES',\r\n    region_code: 'ES-CL'\r\n  },\r\n  geometry: {\r\n    type: 'MultiPolygon',\r\n    coordinates: [\r\n      [ 7.43745, 43.74336 ],\r\n      ...\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### getStateGeoJSONByCode(state_code)\r\n\r\nGet geojson country state by state code.\r\n\r\n```javascript\r\nconst { getStateGeoJSONByCode } = require(\"geojson-places\");\r\n// Get the country state geojson of Valladolid, Castilla y León (Spain) with state code ES-VA\r\nconst result = getStateGeoJSONByCode('ES-VA');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  type: 'Feature',\r\n  properties: {\r\n    country_a2: 'ES',\r\n    region_code: 'ES-CL',\r\n    state_code: 'ES-VA'\r\n  },\r\n  geometry: {\r\n    type: 'MultiPolygon',\r\n    coordinates: [\r\n      [ 7.43745, 43.74336 ],\r\n      ...\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### getContinents(locale = null)\r\n\r\nGet a list of continents.\r\n\r\nThe function will return an array of objects with the continent code, name and an array of `iso-3166-2` country codes contained in each continent.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the continent name (English by default).\r\n\r\n```javascript\r\nconst { getContinents } = require(\"geojson-places\");\r\n// Get the continent list\r\nconst result = getContinents();\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  {\r\n    continent_code: 'AF',\r\n    continent_name: 'Afrique',\r\n    countries: [\r\n      'DZ', 'AO', 'BW', 'BI', 'CM', 'CV', 'CF',\r\n      'TD', 'KM', 'YT', 'CG', 'CD', 'BJ', 'GQ',\r\n      'ET', 'ER', 'DJ', 'GA', 'GM', 'GH', 'GN',\r\n      'CI', 'KE', 'LS', 'LR', 'LY', 'MG', 'MW',\r\n      'ML', 'MR', 'MU', 'MA', 'MZ', 'NA', 'NE',\r\n      'NG', 'GW', 'RE', 'RW', 'SH', 'ST', 'SN',\r\n      'SC', 'SL', 'SO', 'ZA', 'ZW', 'SS', 'EH',\r\n      'SD', 'SZ', 'TG', 'TN', 'UG', 'EG', 'TZ',\r\n      'BF', 'ZM'\r\n    ]\r\n  },\r\n  ...\r\n]\r\n```\r\n\r\n### getContinentByCode(continent_code, locale = null)\r\n\r\nGet the specified continent by code.\r\n\r\nThe function will return an object with the continent code, name and an array of `iso-3166-2` country codes contained in the specified continent, always ordered by continent name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the continent name (English by default).\r\n\r\n```javascript\r\nconst { getContinentByCode } = require(\"geojson-places\");\r\n// Get the Europe continent\r\nconst result = getContinentByCode('EU');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  continent_code: 'EU',\r\n  continent_name: 'Europe',\r\n  countries: [\r\n    'AL', 'AD', 'AZ', 'AT', 'AM', 'BE', 'BA',\r\n    'BG', 'BY', 'HR', 'CY', 'CZ', 'DK', 'EE',\r\n    'FO', 'FI', 'AX', 'FR', 'GE', 'DE', 'GI',\r\n    'GR', 'VA', 'HU', 'IS', 'IE', 'IT', 'KZ',\r\n    'LV', 'LI', 'LT', 'LU', 'MT', 'MC', 'MD',\r\n    'ME', 'NL', 'NO', 'PL', 'PT', 'RO', 'RU',\r\n    'SM', 'RS', 'SK', 'SI', 'ES', 'SJ', 'SE',\r\n    'CH', 'TR', 'UA', 'MK', 'GB', 'GG', 'JE',\r\n    'IM'\r\n  ]\r\n}\r\n```\r\n\r\n### isValidContinentCode(continent_code)\r\n\r\nReturns boolean value depending on the specified continent code is valid or not.\r\n\r\n```javascript\r\nconst { isValidContinentCode } = require(\"geojson-places\");\r\nconsole.log(isValidContinentCode('EU'));\r\n// true\r\nconsole.log(isValidContinentCode('XX'));\r\n// false\r\n```\r\n\r\n### getCountries(locale = null)\r\n\r\nGet a list of countries.\r\n\r\nThe function will return an array of objects with the country code in `iso-3166-2` and `iso-3166-3` format, and name, always ordered by country name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the country name (English by default).\r\n\r\n```javascript\r\nconst { getCountries } = require(\"geojson-places\");\r\n// Get the country list\r\nconst result = getCountries();\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  { country_a2: 'AF', country_a3: 'AFG', country_name: 'Afghanistan' },\r\n  { country_a2: 'AX', country_a3: 'ALD', country_name: 'Aland' },\r\n  { country_a2: 'AL', country_a3: 'ALB', country_name: 'Albania' },\r\n  ...\r\n]\r\n```\r\n\r\n### getCountryByAlpha2(country_a2, locale = null)\r\n\r\nGet the specified country by iso-3166-2 code.\r\n\r\nThe function will return an object with the country code in `iso-3166-2` and `iso-3166-3` format, and name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the country name (English by default).\r\n\r\n```javascript\r\nconst { getCountryByAlpha2 } = require(\"geojson-places\");\r\n// Get the Europe continent\r\nconst result = getCountryByAlpha2('AF');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  country_a2: 'AF',\r\n  country_a3: 'AFG',\r\n  country_name: 'Afghanistan'\r\n}\r\n```\r\n\r\n### getCountryByAlpha3(country_a3, locale = null)\r\n\r\nGet the specified country by iso-3166-3 code.\r\n\r\nThe function will return an object with the country code in `iso-3166-2` and `iso-3166-3` format, and name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the country name (English by default).\r\n\r\n```javascript\r\nconst { getCountryByAlpha3 } = require(\"geojson-places\");\r\n// Get the Europe continent\r\nconst result = getCountryByAlpha3('AFG');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  country_a2: 'AF',\r\n  country_a3: 'AFG',\r\n  country_name: 'Afghanistan'\r\n}\r\n```\r\n\r\n### isValidCountryAlpha2(country_a2)\r\n\r\nReturns boolean value depending on the specified country code in `iso-3166-2` format, is valid or not.\r\n\r\n```javascript\r\nconst { isValidCountryAlpha2 } = require(\"geojson-places\");\r\nconsole.log(isValidCountryAlpha2('ES'));\r\n// true\r\nconsole.log(isValidCountryAlpha2('XX'));\r\n// false\r\n```\r\n\r\n### isValidCountryAlpha3(country_a3)\r\n\r\nReturns boolean value depending on the specified country code in `iso-3166-3` format, is valid or not.\r\n\r\n```javascript\r\nconst { isValidCountryAlpha3 } = require(\"geojson-places\");\r\nconsole.log(isValidCountryAlpha3('ESP'));\r\n// true\r\nconsole.log(isValidCountryAlpha3('XXX'));\r\n// false\r\n```\r\n\r\n### countryAlpha3ToAlpha2(country_a3)\r\n\r\nConvert country code from `iso-3166-3` to `iso-3166-2` format.\r\n\r\n```javascript\r\nconst { countryAlpha3ToAlpha2 } = require(\"geojson-places\");\r\nconsole.log(countryAlpha3ToAlpha2('ESP'));\r\n// ES\r\nconsole.log(countryAlpha3ToAlpha2('XXX'));\r\n// null\r\n```\r\n\r\n### countryAlpha2ToAlpha3(country_a2)\r\n\r\nConvert country code from `iso-3166-2` to `iso-3166-3` format.\r\n\r\n```javascript\r\nconst { countryAlpha2ToAlpha3 } = require(\"geojson-places\");\r\nconsole.log(countryAlpha2ToAlpha3('ES'));\r\n// ESP\r\nconsole.log(countryAlpha2ToAlpha3('XX'));\r\n// null\r\n```\r\n\r\n### getCountriesByContinentCode(continent_code, locale = null)\r\n\r\nGet the country list of the specified continent code.\r\n\r\nThe function will return an array of objects with the country code in `iso-3166-2` and `iso-3166-3` format, and name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the country name (English by default).\r\n\r\n```javascript\r\nconst { getCountriesByContinentCode } = require(\"geojson-places\");\r\n// Get the country list of the Europe continent\r\nconst result = getCountriesByContinentCode('EU');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  {\r\n    country_a2: 'AX',\r\n    country_a3: 'ALD',\r\n    country_name: 'Aland'\r\n  },\r\n  ...\r\n]\r\n```\r\n\r\n### getCountriesByCountryGroupingCode(grouping_code, locale = null)\r\n\r\nGet the country list of the specified country grouping code.\r\n\r\nThe function will return an array of objects with the country code in `iso-3166-2` and `iso-3166-3` format, and name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the country name (English by default).\r\n\r\n```javascript\r\nconst { getCountriesByCountryGroupingCode } = require(\"geojson-places\");\r\n// Get the country list of the EMEA country grouping\r\nconst result = getCountriesByCountryGroupingCode('EMEA');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  {\r\n    country_a2: 'AX',\r\n    country_a3: 'ALD',\r\n    country_name: 'Aland'\r\n  },\r\n  ...\r\n]\r\n```\r\n\r\n### getCountryGroupings(locale = null)\r\n\r\nGet a list of [country groupings](https://en.wikipedia.org/wiki/List_of_country_groupings).\r\n\r\nGroups of countries or regions are often referred to by a single term (word, phrase, or abbreviation). The origins of such terms include political alliances, intergovernmental organizations, business market areas, and mere colloquialism.\r\n\r\nThe function will return an array of objects with the country grouping code, name and an array of `iso-3166-2` country codes contained in each country grouping.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the country grouping name (English by default).\r\n\r\n```javascript\r\nconst { getCountryGroupings } = require(\"geojson-places\");\r\n// Get the country grouping list\r\nconst result = getCountryGroupings('es');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  {\r\n    grouping_code: 'CEFTA',\r\n    grouping_name: 'Acuerdo de libre comercio de Europa Central',\r\n    countries: [ 'AL', 'BA', 'MD', 'ME', 'MK', 'RS' ]\r\n  },\r\n  {\r\n    grouping_code: 'DACH',\r\n    grouping_name: 'Alemania, Austria, Confederación Suiza',\r\n    countries: [ 'AT', 'CH', 'DE' ]\r\n  },\r\n  {\r\n    grouping_code: 'Pacific Alliance',\r\n    grouping_name: 'Alianza del Pacífico',\r\n    countries: [\r\n      'AU', 'CA', 'CL',\r\n      'CO', 'MX', 'NZ',\r\n      'PE', 'SG'\r\n    ]\r\n  },\r\n  ...\r\n]\r\n```\r\n\r\n### getCountryGroupingByCode(grouping_code, locale = null)\r\n\r\nGet the specified country grouping by code.\r\n\r\nThe function will return an object with the country grouping code, name and an array of `iso-3166-2` country codes contained in the specified country grouping, always ordered by country grouping name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the country grouping name (English by default).\r\n\r\n```javascript\r\nconst { getCountryGroupingByCode } = require(\"geojson-places\");\r\n// Get the EMEA (Europe, the Middle East and Africa) country grouping\r\nconst result = getCountryGroupingByCode('EMEA');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  grouping_code: 'EMEA',\r\n  grouping_name: 'Europe, the Middle East and Africa',\r\n  countries: [\r\n    'AD', 'AE', 'AL', 'AM', 'AO', 'AT', 'AX', 'AZ', 'BA', 'BE',\r\n    'BG', 'BH', 'BI', 'BJ', 'BW', 'BY', 'CF', 'CG', 'CH', 'CI',\r\n    'CM', 'CV', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DZ', 'EE', 'EG',\r\n    'EH', 'ER', 'ES', 'ET', 'FI', 'FO', 'FR', 'GA', 'GB', 'GE',\r\n    'GG', 'GH', 'GI', 'GM', 'GN', 'GR', 'HR', 'HU', 'IE', 'IL',\r\n    'IM', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JO', 'KE', 'KM', 'KW',\r\n    'KZ', 'LB', 'LI', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA',\r\n    'MC', 'MD', 'ME', 'MG', 'MK', 'ML', 'MR', 'MT', 'MU', 'MW',\r\n    'MZ', 'NA', 'NE', 'NL', 'NO', 'OM', 'PL', 'PT', 'QA', 'RE',\r\n    'RS', 'RU', 'RW', 'SA', 'SC', 'SD', 'SE', 'SH', 'SI', 'SK',\r\n    ...\r\n  ]\r\n}\r\n```\r\n\r\n### isValidCountryGroupingCode(grouping_code)\r\n\r\nReturns boolean value depending on the specified country grouping code is valid or not.\r\n\r\n```javascript\r\nconst { isValidCountryGroupingCode } = require(\"geojson-places\");\r\nconsole.log(isValidCountryGroupingCode('EMEA'));\r\n// true\r\nconsole.log(isValidCountryGroupingCode('X'));\r\n// false\r\n```\r\n\r\n### getRegions(locale = null)\r\n\r\nGet a list of all regions.\r\n\r\nThe function will return an array of objects with each country `iso-3166-2` code, region code and name, always ordered by region name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the region names (English by default).\r\n\r\n```javascript\r\nconst { getRegions } = require(\"geojson-places\");\r\n// Get all regions\r\nconst result = getRegions();\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  { country_a2: 'ES', region_code: 'ES-AN', region_name: 'Andalusia' },\r\n  { country_a2: 'ES', region_code: 'ES-AR', region_name: 'Aragon' },\r\n  { country_a2: 'ES', region_code: 'ES-AS', region_name: 'Asturias' },\r\n  ...\r\n]\r\n```\r\n\r\n### getRegionsAndStates(locale = null)\r\n\r\nGet a list of all regions with the states of each region.\r\n\r\nThe function will return an array of objects with each country `iso-3166-2` code, region code, name and an array of states, always ordered by region name, and state name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the region names and state names (English by default).\r\n\r\n```javascript\r\nconst { getRegionsAndStates } = require(\"geojson-places\");\r\n// Get all regions and states\r\nconst result = getRegionsAndStates();\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  {\r\n    country_a2: 'ES',\r\n    region_code: 'ES-CL',\r\n    region_name: 'Castilla y León',\r\n    states: [\r\n      { state_code: 'ES-BU', state_name: 'Burgos' },\r\n      { state_code: 'ES-LE', state_name: 'León' },\r\n      { state_code: 'ES-P' , state_name: 'Palencia' },\r\n      { state_code: 'ES-SA', state_name: 'Salamanca' },\r\n      { state_code: 'ES-SG', state_name: 'Segovia' },\r\n      { state_code: 'ES-SO', state_name: 'Soria' },\r\n      { state_code: 'ES-VA', state_name: 'Valladolid' },\r\n      { state_code: 'ES-ZA', state_name: 'Zamora' },\r\n      { state_code: 'ES-AV', state_name: 'Ávila' }\r\n    ]\r\n  },\r\n  ...\r\n]\r\n```\r\n\r\n### getRegionsByCountryAlpha2(alpha2, locale = null)\r\n\r\nGet a list of regions of the specified country by `iso-3166-2` code.\r\n\r\nThe function will return an array of objects with each country `iso-3166-2` code, region code and name contained in the specified country, always ordered by region name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the region name (English by default).\r\n\r\n```javascript\r\nconst { getRegionsByCountryAlpha2 } = require(\"geojson-places\");\r\n// Get the regions of Spain\r\nconst result = getRegionsByCountryAlpha2('ES');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  { country_a2: 'ES', region_code: 'ES-AN', region_name: 'Andalusia' },\r\n  { country_a2: 'ES', region_code: 'ES-AR', region_name: 'Aragon' },\r\n  { country_a2: 'ES', region_code: 'ES-AS', region_name: 'Asturias' },\r\n  { country_a2: 'ES', region_code: 'ES-PM', region_name: 'Balears' },\r\n  { country_a2: 'ES', region_code: 'ES-PV', region_name: 'Basque Country' },\r\n  { country_a2: 'ES', region_code: 'ES-CN', region_name: 'Canary Islands' },\r\n  { country_a2: 'ES', region_code: 'ES-CB', region_name: 'Cantabria' },\r\n  { country_a2: 'ES', region_code: 'ES-CL', region_name: 'Castile and León' },\r\n  { country_a2: 'ES', region_code: 'ES-CM', region_name: 'Castilla-La Mancha' },\r\n  { country_a2: 'ES', region_code: 'ES-CT', region_name: 'Catalonia' },\r\n  { country_a2: 'ES', region_code: 'ES-CE', region_name: 'Ceuta' },\r\n  { country_a2: 'ES', region_code: 'ES-MD', region_name: 'Community of Madrid' },\r\n  { country_a2: 'ES', region_code: 'ES-EX', region_name: 'Extremadura' },\r\n  { country_a2: 'ES', region_code: 'ES-GA', region_name: 'Galicia' },\r\n  { country_a2: 'ES', region_code: 'ES-LO', region_name: 'La Rioja' },\r\n  { country_a2: 'ES', region_code: 'ES-ML', region_name: 'Melilla' },\r\n  { country_a2: 'ES', region_code: 'ES-NA', region_name: 'Navarre' },\r\n  { country_a2: 'ES', region_code: 'ES-MU', region_name: 'Region of Murcia' },\r\n  { country_a2: 'ES', region_code: 'ES-VC', region_name: 'Valencian Community' }\r\n]\r\n```\r\n\r\n### getRegionsByCountryAlpha3(alpha3, locale = null)\r\n\r\nThe same than `getRegionsByCountryAlpha2`, get a list of regions of the specified country by `iso-3166-3` code.\r\n\r\n### getRegionByCode(region_code, locale = null)\r\n\r\nGet the specified region by code.\r\n\r\nThe function will return an object with the region of the specified code, name and an array of states contained in the specified region, always ordered by state name.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the region name and the list of state names (English by default).\r\n\r\n```javascript\r\nconst { getRegionByCode } = require(\"geojson-places\");\r\n// Get the region by code ES-CL (Castilla y León, Spain)\r\nconst result = getRegionByCode('ES-CL');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  country_a2: 'ES',\r\n  region_code: 'ES-CL',\r\n  region_name: 'Castilla y León',\r\n  states: [\r\n    { state_code: 'ES-BU', state_name: 'Burgos' },\r\n    { state_code: 'ES-LE', state_name: 'León' },\r\n    { state_code: 'ES-P' , state_name: 'Palencia' },\r\n    { state_code: 'ES-SA', state_name: 'Salamanca' },\r\n    { state_code: 'ES-SG', state_name: 'Segovia' },\r\n    { state_code: 'ES-SO', state_name: 'Soria' },\r\n    { state_code: 'ES-VA', state_name: 'Valladolid' },\r\n    { state_code: 'ES-ZA', state_name: 'Zamora' },\r\n    { state_code: 'ES-AV', state_name: 'Ávila' }\r\n  ]\r\n}\r\n```\r\n\r\n### isValidRegionCode(region_code)\r\n\r\nReturns boolean value depending on the specified region code is valid or not.\r\n\r\n```javascript\r\nconst { isValidRegionCode } = require(\"geojson-places\");\r\nconsole.log(isValidRegionCode('ES-CL'));\r\n// true\r\nconsole.log(isValidRegionCode('XX-XX'));\r\n// false\r\n```\r\n\r\n### getStatesByRegionCode(region_code, locale = null)\r\n\r\nGet a list of states of the specified region by code.\r\n\r\nThe function will return an array of objects with the state code and name contained in the specified region by code.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the state names (English by default).\r\n\r\n```javascript\r\nconst { getStatesByRegionCode } = require(\"geojson-places\");\r\n// Get the states of the region by code ES-CL (Castilla y León, Spain)\r\nconst result = getStatesByRegionCode('ES-CL');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n[\r\n  { state_code: 'ES-BU', state_name: 'Burgos' },\r\n  { state_code: 'ES-LE', state_name: 'León' },\r\n  { state_code: 'ES-P' , state_name: 'Palencia' },\r\n  { state_code: 'ES-SA', state_name: 'Salamanca' },\r\n  { state_code: 'ES-SG', state_name: 'Segovia' },\r\n  { state_code: 'ES-SO', state_name: 'Soria' },\r\n  { state_code: 'ES-VA', state_name: 'Valladolid' },\r\n  { state_code: 'ES-ZA', state_name: 'Zamora' },\r\n  { state_code: 'ES-AV', state_name: 'Ávila' }\r\n]\r\n```\r\n\r\n### getStateByCode(state_code, locale = null)\r\n\r\nGet the specified state by code.\r\n\r\nThe function will return an object with the state code and name of the specified state code.\r\n\r\nOptionally the `locale` can be specified as parameter to localize the state name (English by default).\r\n\r\n```javascript\r\nconst { getStateByCode } = require(\"geojson-places\");\r\n// Get the state by code ES-VA (Valladolid, Castilla y León, Spain)\r\nconst result = getStateByCode('ES-VA');\r\n```\r\n\r\nResult:\r\n\r\n```javascript\r\n{\r\n  state_code: 'ES-VA',\r\n  state_name: 'Valladolid'\r\n}\r\n```\r\n\r\n### isValidStateCode(state_code)\r\n\r\nReturns boolean value depending on the specified state code is valid or not.\r\n\r\n```javascript\r\nconst { isValidStateCode } = require(\"geojson-places\");\r\nconsole.log(isValidStateCode('ES-VA'));\r\n// true\r\nconsole.log(isValidStateCode('XX-XX'));\r\n// false\r\n```\r\n\r\n## Testing the library\r\n\r\nWe can run this npm script to run all the testing cases:\r\n\r\n```bash\r\nnpm run test\r\n```\r\n\r\n## Building the resources\r\n\r\nThere is a script to regenerate and/or update the following project files:\r\n\r\n```bash\r\n\\data\\countries\\*\r\n\\data\\country-groupings\\*\r\n\\data\\continents\\*\r\n\\data\\regions\\*\r\n\\data\\states\\*\r\n```\r\n\r\nNote that the country names will be localized using the module [i18n-iso-countries](https://github.com/michaelwittig/node-i18n-iso-countries).\r\n\r\nThe project file `/data/build.json` must be downloaded from [Admin 1 – States, Provinces](https://www.naturalearthdata.com/downloads/10m-cultural-vectors/) (click on `Download states and provinces`), this is the [direct link](https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_1_states_provinces.zip).\r\n\r\nAfter downloaded the file you need to convert all the collection to a geojson file, using for example the online [mapsharper.org](https://mapshaper.org/) tool.\r\n\r\nAfter converting the zip file to json file, the project file `/data/build.json` must be replaced by this one.\r\n\r\nNow we are ready to launch the build (It may take a couple of days 😮):\r\n\r\n```bash\r\nnpm run build\r\n```\r\n\r\n## Acknowledgment\r\n\r\n* GeoJSON with all state polygons extracted from [Natural Earth Data](https://www.naturalearthdata.com/downloads/10m-cultural-vectors/).\r\n* All state polygons have been joined to create the regions, countries, country groupings and continents using the library [Turf](http://turfjs.org/).\r\n* Checks if a point is contained in a polygon, based on the [Jordan curve theorem](https://en.wikipedia.org/wiki/Jordan_curve_theorem).\r\n* Country names i18n obtained from [i18n-iso-countries](https://www.npmjs.com/package/i18n-iso-countries) module.\r\n* Region names i18n obtained from [iso3166-2-db](https://www.npmjs.com/package/iso3166-2-db) module.\r\n","readmeFilename":"README.md"}