Class that holds data of a city.
More...
Class that holds data of a city.
A user would not normally create an City object but rather obtain one from calling bridges::data_src_dependent::data_source::get_us_cities_data(), bridges::data_src_dependent::data_source::get_world_cities_data() (to come)
A tutorial on how to use the City objects is available at: https://bridgesuncc.github.io/tutorials/Data_USCities.html
Each city object contains the city name, state, country, time zone, elevation, population and lat/long location information.
- Author
- Kalpathi Subramanian
- Date
- 6/7/22
◆ __init__()
| bridges.data_src_dependent.city.City.__init__ |
( |
|
self, |
|
|
str |
city = None, |
|
|
str |
state = None, |
|
|
str |
country = None, |
|
|
float |
lat = None, |
|
|
float |
lon = None, |
|
|
int |
elevation = None, |
|
|
int |
population = None, |
|
|
str |
timezone = None |
|
) |
| |
◆ _city
| bridges.data_src_dependent.city.City._city |
|
protected |
◆ _country
| bridges.data_src_dependent.city.City._country |
|
protected |
◆ _elevation
| bridges.data_src_dependent.city.City._elevation |
|
protected |
◆ _lat
| bridges.data_src_dependent.city.City._lat |
|
protected |
◆ _lon
| bridges.data_src_dependent.city.City._lon |
|
protected |
◆ _population
| bridges.data_src_dependent.city.City._population |
|
protected |
◆ _state
| bridges.data_src_dependent.city.City._state |
|
protected |
◆ _timezone
| bridges.data_src_dependent.city.City._timezone |
|
protected |
◆ city
| bridges.data_src_dependent.city.City.city = property |
|
static |
◆ country
| bridges.data_src_dependent.city.City.country = property |
|
static |
◆ elevation
| bridges.data_src_dependent.city.City.elevation = property |
|
static |
◆ lat
| bridges.data_src_dependent.city.City.lat = property |
|
static |
◆ lon
| bridges.data_src_dependent.city.City.lon = property |
|
static |
◆ population
| bridges.data_src_dependent.city.City.population = property |
|
static |
◆ state
| bridges.data_src_dependent.city.City.state = property |
|
static |
◆ timezone
| bridges.data_src_dependent.city.City.timezone = property |
|
static |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-python/bridges/data_src_dependent/city.py