Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle Brainstorming #9

Open
tacman opened this issue Apr 2, 2020 · 0 comments
Open

Bundle Brainstorming #9

tacman opened this issue Apr 2, 2020 · 0 comments

Comments

@tacman
Copy link
Contributor

tacman commented Apr 2, 2020

I quite like Symfony's Intl bundle, which provides data about countries, currency and timezones. https://symfony.com/doc/current/components/intl.html

Geonames provides so much data, and this bundle loads it. My idea is to add a service to the bundle that allows the developer access to administrative data, like "state" and "city". (in quotes because they're not accurate, but easily understandable.)

If the bundle used its own entity manager, it could store the data in SQLite. Of course, there would need to be a step to load the data. So the workflow would be:

  • Install the bundle
  • Configure geonames.yaml, e.g.
    Countries: US, CA, PO
  • Populate the sqlite database with the existing :import command.

Then the service could provider a wrapper to the repository lookups, using either the 2 or 3 letter ISO codes (for the higher level) or the Ascii name or geoname ID for the lower levels.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant