City entity¶
Generate locale-aware cities with postal, regional, language, and population data.
Why: Use City when postal, regional, language, and population attributes must represent one locale-aware city; use a source catalogue when only governed real locations are allowed.
1 | |
Output: Typed City value.
Parameters¶
dataset:str | null; DefaultNone— Country dataset used for city, postal, regional, and language values.
Attributes¶
area_code(str): Telephone area code.country(str): Human-readable country name.country_code(str): ISO 3166-1 alpha-2 country code.language(str | None): Language spoken in the city, when the dataset provides it.name(str): City name.name_extension(str): Name suffix that distinguishes cities with the same name.population(int | None): Population, when the dataset provides it.postal_code(str): Postal or ZIP code.state(str): State, province, or region.
Limits¶
The available attributes and values depend on the registered entity, its dataset, and its documented constructor options.