Bridges-Python 3.5.1
Bridges(Python API)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Properties | List of all members
bridges.data_src_dependent.city.City Class Reference

Class that holds data of a city. More...

Public Member Functions

 __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)
 

Protected Attributes

 _city
 
 _state
 
 _country
 
 _lat
 
 _lon
 
 _elevation
 
 _population
 
 _timezone
 

Properties

 city = property
 
 state = property
 
 country = property
 
 lat = property
 
 lon = property
 
 elevation = property
 
 population = property
 
 timezone = property
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __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 
)

Member Data Documentation

◆ _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

Property Documentation

◆ 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: