tracktable.data_generators.heatmap_point module
Module contents
tracktable.data_generators.heatmap point - Generating heatmap points around n largest cities.
- tracktable.data_generators.heatmap_point.n_largest_cities(howmany: int) list of CityInfo objects[source]
Retrieve a list of the N largest cities in the world (by population) sorted in descending order.
- tracktable.data_generators.heatmap_point.point_radius_for_city(city: tracktable.info.cities.CityInfo)[source]
Return a radius proportional to a city’s population. Arbitrarily, a city with a population of 1 million will get a radius of 50 km.
This has no particular real-world meaning. It’s just a way to scatter points around the city center.