Giter VIP home page Giter VIP logo

Comments (4)

quincylvania avatar quincylvania commented on July 2, 2024

Hi @baywet, thanks so much for integrating! For background, understand that we developed country-coder to support iD, the web editor for the global OpenStreetMap project.

The short answer is no, unfortunately we're not planning on adding subdivisions beyond those included in ISO 3166-1 and M49 😢

The only reasons for this are practical. Country-coder currently has fewer than 300 GeoJSON features. To fully support ISO 3166-2 subdivisions we'd have to add nearly 5000 more! It'd take significant time to gather and maintain the data, though the far bigger issue for our web app would be the drastically increased download size. While we could theoretically support some countries (e.g. the US and Canada) but not others, that wouldn't be particularly useful to us nor fair to our mappers around the world.

That said, it should be relatively easy to fork the code and roll your own solution. Good luck!

from country-coder.

peternewman avatar peternewman commented on July 2, 2024

though the far bigger issue for our web app would be the drastically increased download size

Would it be overly complex to support multiple packs so apps could just load the ones for e.g. the countries they needed that level of detail in. Which would also mean different people/groups could spend the time contributing different countries.

That said, it should be relatively easy to fork the code and roll your own solution. Good luck!

Packs of states or equivalent would also avoid different people duplicating that work.

from country-coder.

quincylvania avatar quincylvania commented on July 2, 2024

Would it be overly complex to support multiple packs so apps could just load the ones for e.g. the countries they needed that level of detail in.

It's doable, but not trivial. From my perspective, the effort and complexity are only worthwhile if the results serve the needs of iD. I could see us doing interesting things with granular-scale features eventually, but we don't have a pressing need yet.

Packs of states or equivalent would also avoid different people duplicating that work.

If anyone makes a similar package for sub-country areas, I'd be happy to add a link to the README for others to take advantage of.

from country-coder.

 avatar commented on July 2, 2024

If anyone makes a similar package for sub-country areas

As a stopgap place to direct downstream consumers who wish to supplement countrycoder, do you think https://github.com/whosonfirst-data/whosonfirst-data-admin-ca (for example) would be appropriate?

from country-coder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.