Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
which-country-ne-10m
Advanced tools
Readme
Get ISO 3166-1 alpha-3 country code for geographic coordinates in node.js or browser.
Forked from the original which-country library, this uses Natural Earth's 10m countries database instead of the 50m one which should provide higher accuracy and support for smaller territories but at the cost of performance and size.
Powered by rbush and modified Natural Earth 10m countries dataset.
If you are interested in more general solution, try which-polygon.
npm install which-country-ne-10m
and then:
var wc = require('which-country-ne-10m');
// pass [lng, lat]
console.log(wc([37, 55])); // RUS
console.log(wc([-100, 40])); // USA
console.log(wc([40, -40])); // null, somewhere in Atlantic Ocean
#Demo
Demo with leaflet and browserify
Run tests:
npm test
Generate R-tree:
npm run generate
MIT
FAQs
Get ISO 3166-1 alpha-3 country code for geographic coordinates based on Natural Earth's 10m database
We found that which-country-ne-10m demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).