Comments (3)
@bhousel I discovered the UN M49 list which seems like a workable standard to support. It's a superset of ISO 3166-1 numeric-3 codes with a bunch of regions, including most of those you listed.
https://en.wikipedia.org/wiki/UN_M49
https://unstats.un.org/unsd/methodology/m49/
from country-coder.
@bhousel I discovered the UN M49 list which seems like a workable standard to support. It's a superset of ISO 3166-1 numeric-3 codes with a bunch of regions, including most of those you listed.
whoa good find, that looks perfect!
from country-coder.
So I integrated the M49 list. I'm not totally sure how you want to work with this data but right now you can use the features
endpoint like this:
const coder = new CountryCoder();
coder.features([-12.3, -37.1]));
The returned array will include the region features, then you can check the m49
property of each one to see if a particular point is in your region of interest.
This is sorta clunky so we should add endpoints for "give me all the features in the region with this code" and "is this point in the region with this code".
from country-coder.
Related Issues (20)
- Reduce package/bundle size - dynamically import borders.json HOT 1
- FeedBack - Code HOT 1
- Northen Cyprus' ISO code HOT 2
- ISO 3166 of countries with Sovereign states HOT 1
- Emoji flag for Metropolitan France is broken HOT 3
- A few more sub-country pseudo codes HOT 3
- Africa is a donut
- New release? HOT 5
- Chukchi Peninsula shows as being in Europe instead of Asia
- Support bbox query? HOT 2
- [wrong repo]
- Sub-regions, repeated data and .geojson hosting HOT 1
- United Kingdom HOT 12
- We might be using "exports" wrong HOT 2
- ESM export broken in react-native 0.64.2 (non-expo) HOT 4
- File extension pattern matching in React Native 0.62.4 for mjs cjs main and module files HOT 4
- France: EU + Europe missing ? HOT 3
- Fully ESM compatible ?
- Don't use for..in to iterate over arrays
- Missing triangle on Swiss border HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from country-coder.