all_the_cities v0.1.0 AllTheCities
All the 138,398 cities of the world with a population of at least 1000 inhabitants, in a big array.
Link to this section Summary
Functions
load cites from serialized pbf data to List
Link to this section Functions
Link to this function
decode(data, results, last_lat, last_lng)
Link to this function
decode_city(m, last_lat, last_lng)
Link to this function
load()
load cites from serialized pbf data to List
Examples
iex> cities = AllTheCities.load()
iex> Enum.count(cities)
138398
iex> Enum.at(cities, 138397)
%AllTheCities.City{
admin_code: "02",
alt_country: "",
country: "AD",
feature_code: "PPL",
lat: 42.57952,
lng: 1.65362,
muni: "",
muni_sub: "",
name: "El Tarter",
population: 1052
}