Bridges-Python
3.4.5-dev2-5-g352f189
Bridges(Python API)
|
Class that holds data of a city. More...
Public Member Functions | |
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) |
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.
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 |
||
) |
def bridges.data_src_dependent.city.City.city | ( | self | ) |
def bridges.data_src_dependent.city.City.city | ( | self, | |
city | |||
) |
def bridges.data_src_dependent.city.City.country | ( | self | ) |
def bridges.data_src_dependent.city.City.country | ( | self, | |
country | |||
) |
def bridges.data_src_dependent.city.City.elevation | ( | self | ) |
def bridges.data_src_dependent.city.City.elevation | ( | self, | |
elevation | |||
) |
def bridges.data_src_dependent.city.City.lat | ( | self | ) |
def bridges.data_src_dependent.city.City.lat | ( | self, | |
lat | |||
) |
def bridges.data_src_dependent.city.City.lon | ( | self | ) |
def bridges.data_src_dependent.city.City.lon | ( | self, | |
lon | |||
) |
def bridges.data_src_dependent.city.City.population | ( | self | ) |
def bridges.data_src_dependent.city.City.population | ( | self, | |
population | |||
) |
def bridges.data_src_dependent.city.City.state | ( | self | ) |
def bridges.data_src_dependent.city.City.state | ( | self, | |
state | |||
) |
def bridges.data_src_dependent.city.City.timezone | ( | self | ) |
def bridges.data_src_dependent.city.City.timezone | ( | self, | |
timeone | |||
) |