#include <Amenity.h>
Class that hold Open Street Map Amenity data.
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::DataSource::getAmenityData()
- See also
- Check out the tutorial on getting amenity data at https://bridgesuncc.github.io/tutorials/Data_Amenity.html
- Author
- Kalpathi Subramanian
- Date
- 1/28/21
◆ Amenity() [1/2]
◆ Amenity() [2/2]
Amenity::Amenity |
( |
double |
id_val, |
|
|
double |
lat, |
|
|
double |
lon, |
|
|
string |
name, |
|
|
vector< string > |
other |
|
) |
| |
|
inline |
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()
get the ID of this amenity
- Returns
- ID value
◆ getLat()
double Amenity::getLat |
( |
| ) |
|
|
inline |
get the latitude of this amenity data
- Returns
- amenity data latitude
◆ getLon()
double Amenity::getLon |
( |
| ) |
|
|
inline |
get the longitude of this amenity data
- Returns
- amenity data longitude
◆ getName()
string Amenity::getName |
( |
| ) |
|
|
inline |
get the name of this amenity data
- Returns
- name of this amenity
◆ getOther()
vector<string> Amenity::getOther |
( |
| ) |
|
|
inline |
get the extra data present for certain amenities
- Returns
- list of extra data
◆ setId()
void Amenity::setId |
( |
long |
id | ) |
|
|
inline |
set the ID value of this amenity
- Parameters
-
◆ setLat()
void Amenity::setLat |
( |
double |
latitude | ) |
|
|
inline |
set the latitude value of this amenity
- Parameters
-
lat | latitude position to set |
◆ setLon()
void Amenity::setLon |
( |
double |
longitude | ) |
|
|
inline |
set the longitude value of this amenity
- Parameters
-
lon | longitude position to set |
◆ setName()
void Amenity::setName |
( |
string |
n | ) |
|
|
inline |
set the name of this amenity
- Parameters
-
name | name of amenity to set |
◆ setOther()
void Amenity::setOther |
( |
vector< string > |
oth | ) |
|
|
inline |
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-cxx/src/data_src/Amenity.h