Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | Package Attributes | List of all members
bridges.data_src_dependent.City Class Reference

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::connect::DataSource::getUSCitiesData(), bridges::connect::DataSource::getWorldCities() (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

Public Member Functions

 City ()
 
 City (String cty, String st, String cntry, String tm_zone, int elev, int pop, float lat, float lon)
 
String getCity ()
 
void setCity (String c)
 
String getState ()
 
void setState (String st)
 
String getCountry ()
 
void setCountry (String cntry)
 
String getTimeZone ()
 
void setTimeZone (String tz)
 
float getLatitude ()
 
void setLatitude (float lat)
 
float getLongitude ()
 
void setLongitude (float lon)
 
int getElevation ()
 
void setElevation (int elev)
 
int getPopulation ()
 
void setPopulation (int pop)
 

Package Attributes

String state
 
String country
 
String time_zone
 
int population
 
float longit
 

Constructor & Destructor Documentation

◆ City() [1/2]

bridges.data_src_dependent.City.City ( )

◆ City() [2/2]

bridges.data_src_dependent.City.City ( String  cty,
String  st,
String  cntry,
String  tm_zone,
int  elev,
int  pop,
float  lat,
float  lon 
)

Member Function Documentation

◆ getCity()

String bridges.data_src_dependent.City.getCity ( )

◆ getCountry()

String bridges.data_src_dependent.City.getCountry ( )

◆ getElevation()

int bridges.data_src_dependent.City.getElevation ( )

◆ getLatitude()

float bridges.data_src_dependent.City.getLatitude ( )

◆ getLongitude()

float bridges.data_src_dependent.City.getLongitude ( )

◆ getPopulation()

int bridges.data_src_dependent.City.getPopulation ( )

◆ getState()

String bridges.data_src_dependent.City.getState ( )

◆ getTimeZone()

String bridges.data_src_dependent.City.getTimeZone ( )

◆ setCity()

void bridges.data_src_dependent.City.setCity ( String  c)

◆ setCountry()

void bridges.data_src_dependent.City.setCountry ( String  cntry)

◆ setElevation()

void bridges.data_src_dependent.City.setElevation ( int  elev)

◆ setLatitude()

void bridges.data_src_dependent.City.setLatitude ( float  lat)

◆ setLongitude()

void bridges.data_src_dependent.City.setLongitude ( float  lon)

◆ setPopulation()

void bridges.data_src_dependent.City.setPopulation ( int  pop)

◆ setState()

void bridges.data_src_dependent.City.setState ( String  st)

◆ setTimeZone()

void bridges.data_src_dependent.City.setTimeZone ( String  tz)

Member Data Documentation

◆ country

String bridges.data_src_dependent.City.country
package

◆ longit

float bridges.data_src_dependent.City.longit
package

◆ population

int bridges.data_src_dependent.City.population
package

◆ state

String bridges.data_src_dependent.City.state
package

◆ time_zone

String bridges.data_src_dependent.City.time_zone
package

The documentation for this class was generated from the following file: