Skip to content

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

@ghost

Description

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions