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

Question on how to use default city for the choosen locale ( Country) #1584

Open
codingwizardx opened this issue Jul 27, 2024 · 1 comment
Open

Comments

@codingwizardx
Copy link

Hi, i have a question.
Below is my code.

from mimesis import Generic
from mimesis.locales import Locale
from mimesis.providers.finance import Finance
generic = Generic(locale=Locale.EN)

country = generic.address.default_country()
city = generic.address.city()
state = generic.address.state()
zip_code = generic.address.zip_code()

I can generate default country for the chosen locale but the zip code doesnt make sense with state or matching city. Its more random in that country.
Is there any way how we can generate zip code which is in that state/city and that makes sense ?

@lk-geimfari
Copy link
Owner

Unfortunately, this is not possible right now, but we will add such a feature.

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

2 participants