BeamLabCountries. City
(beamlab_countries v2.0.1)
View Source
City struct.
Fields
id- GeoNames ID (integer), stable across releasesname- preferred English name (e.g."Vienna"), otherwise GeoNames' primary namenative_name- name in the country's official language (e.g."Wien"); equalsnamewhen no native name is knowntranslations- names in other languages, keyed by locale string (e.g.%{"fr" => "Vienne"}). Only locales whose name differs fromnameare present; useBeamLabCountries.Cities.get_name/2to look a name up with fallbackcountry- alpha2 code of the countrysubdivision- subdivision ID (seeBeamLabCountries.Subdivisions), only set for the United States and Canadapopulation- population as recorded by GeoNames; geographic boundaries and dates varylatitude,longitude- coordinatestimezone- IANA time zone identifiercapital-truefor the capital of the country
Summary
Types
@type t() :: %BeamLabCountries.City{ capital: boolean(), country: String.t(), id: pos_integer(), latitude: float(), longitude: float(), name: String.t(), native_name: String.t(), population: non_neg_integer(), subdivision: String.t() | nil, timezone: String.t() | nil, translations: %{optional(String.t()) => String.t()} }