Bridges-Java
3.4.3
Bridges(Java API)
|
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.
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 |
bridges.data_src_dependent.City.City | ( | ) |
bridges.data_src_dependent.City.City | ( | String | cty, |
String | st, | ||
String | cntry, | ||
String | tm_zone, | ||
int | elev, | ||
int | pop, | ||
float | lat, | ||
float | lon | ||
) |
String bridges.data_src_dependent.City.getCity | ( | ) |
String bridges.data_src_dependent.City.getCountry | ( | ) |
int bridges.data_src_dependent.City.getElevation | ( | ) |
float bridges.data_src_dependent.City.getLatitude | ( | ) |
float bridges.data_src_dependent.City.getLongitude | ( | ) |
int bridges.data_src_dependent.City.getPopulation | ( | ) |
String bridges.data_src_dependent.City.getState | ( | ) |
String bridges.data_src_dependent.City.getTimeZone | ( | ) |
void bridges.data_src_dependent.City.setCity | ( | String | c | ) |
void bridges.data_src_dependent.City.setCountry | ( | String | cntry | ) |
void bridges.data_src_dependent.City.setElevation | ( | int | elev | ) |
void bridges.data_src_dependent.City.setLatitude | ( | float | lat | ) |
void bridges.data_src_dependent.City.setLongitude | ( | float | lon | ) |
void bridges.data_src_dependent.City.setPopulation | ( | int | pop | ) |
void bridges.data_src_dependent.City.setState | ( | String | st | ) |
void bridges.data_src_dependent.City.setTimeZone | ( | String | tz | ) |
|
package |
|
package |
|
package |
|
package |
|
package |