Class that hold individual Open Street Map Amenities.
This class holds the individual information for each amenity requested.
Usually this class is not created by the user but part of an AmenityData object returned by bridges::connect::DataSource::getAmenityData()
Check out the tutorial on getting amenity data at https://bridgesuncc.github.io/tutorials/Data_Amenity.html
- Author
- Jay Strahler
◆ Amenity() [1/2]
bridges.data_src_dependent.Amenity.Amenity |
( |
| ) |
|
◆ Amenity() [2/2]
bridges.data_src_dependent.Amenity.Amenity |
( |
long |
id_val, |
|
|
double |
lat, |
|
|
double |
lon, |
|
|
String |
name, |
|
|
String[] |
other |
|
) |
| |
Constructor
- Parameters
-
id_val | Amenity ID as stored in Open Street Maps |
lat | Latitude of Amenity |
lon | Longitude of Amenity |
name | Name of Amenity as found in Open Street Maps |
other | List of special values that may have come with the amenity |
◆ getId()
long bridges.data_src_dependent.Amenity.getId |
( |
| ) |
|
get the ID of this amenity
- Returns
- ID value
◆ getLat()
double bridges.data_src_dependent.Amenity.getLat |
( |
| ) |
|
get the latitude of this amenity data
- Returns
- amenity data latitude
◆ getLon()
double bridges.data_src_dependent.Amenity.getLon |
( |
| ) |
|
get the longitude of this amenity data
- Returns
- amenity data longitude
◆ getName()
String bridges.data_src_dependent.Amenity.getName |
( |
| ) |
|
get the name of this amenity data
- Returns
- name of this amenity
◆ getOther()
String [] bridges.data_src_dependent.Amenity.getOther |
( |
| ) |
|
get the extra data present for certain amenities
- Returns
- list of extra data
◆ setId()
void bridges.data_src_dependent.Amenity.setId |
( |
long |
id_val | ) |
|
set the ID value of this amenity
- Parameters
-
◆ setLat()
void bridges.data_src_dependent.Amenity.setLat |
( |
double |
lat | ) |
|
set the latitude value of this amenity
- Parameters
-
lat | latitude position to set |
◆ setLon()
void bridges.data_src_dependent.Amenity.setLon |
( |
double |
lon | ) |
|
set the longitude value of this amenity
- Parameters
-
lon | longitude position to set |
◆ setName()
void bridges.data_src_dependent.Amenity.setName |
( |
String |
name | ) |
|
set the name of this amenity
- Parameters
-
name | name of amenity to set |
◆ setOther()
void bridges.data_src_dependent.Amenity.setOther |
( |
String[] |
other | ) |
|
set the extra data present for certain amenities
- Parameters
-
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-java/src/main/java/bridges/data_src_dependent/Amenity.java