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
|
def | __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) |
|
def | city (self) |
|
def | city (self, city) |
|
def | state (self) |
|
def | state (self, state) |
|
def | country (self) |
|
def | country (self, country) |
|
def | lat (self) |
|
def | lat (self, lat) |
|
def | lon (self) |
|
def | lon (self, lon) |
|
def | elevation (self) |
|
def | elevation (self, elevation) |
|
def | population (self) |
|
def | population (self, population) |
|
def | timezone (self) |
|
def | timezone (self, timeone) |
|
◆ __init__()
def 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() [1/2]
def bridges.data_src_dependent.city.City.city |
( |
|
self | ) |
|
◆ city() [2/2]
def bridges.data_src_dependent.city.City.city |
( |
|
self, |
|
|
|
city |
|
) |
| |
◆ country() [1/2]
def bridges.data_src_dependent.city.City.country |
( |
|
self | ) |
|
◆ country() [2/2]
def bridges.data_src_dependent.city.City.country |
( |
|
self, |
|
|
|
country |
|
) |
| |
◆ elevation() [1/2]
def bridges.data_src_dependent.city.City.elevation |
( |
|
self | ) |
|
◆ elevation() [2/2]
def bridges.data_src_dependent.city.City.elevation |
( |
|
self, |
|
|
|
elevation |
|
) |
| |
◆ lat() [1/2]
def bridges.data_src_dependent.city.City.lat |
( |
|
self | ) |
|
◆ lat() [2/2]
def bridges.data_src_dependent.city.City.lat |
( |
|
self, |
|
|
|
lat |
|
) |
| |
◆ lon() [1/2]
def bridges.data_src_dependent.city.City.lon |
( |
|
self | ) |
|
◆ lon() [2/2]
def bridges.data_src_dependent.city.City.lon |
( |
|
self, |
|
|
|
lon |
|
) |
| |
◆ population() [1/2]
def bridges.data_src_dependent.city.City.population |
( |
|
self | ) |
|
◆ population() [2/2]
def bridges.data_src_dependent.city.City.population |
( |
|
self, |
|
|
|
population |
|
) |
| |
◆ state() [1/2]
def bridges.data_src_dependent.city.City.state |
( |
|
self | ) |
|
◆ state() [2/2]
def bridges.data_src_dependent.city.City.state |
( |
|
self, |
|
|
|
state |
|
) |
| |
◆ timezone() [1/2]
def bridges.data_src_dependent.city.City.timezone |
( |
|
self | ) |
|
◆ timezone() [2/2]
def bridges.data_src_dependent.city.City.timezone |
( |
|
self, |
|
|
|
timeone |
|
) |
| |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-python/bridges/data_src_dependent/city.py