#include <AmenityData.h>
Class that holds Open Street Map Amenity Data.
This class holds the data for all the amenities requested by the user
Usually this class is not created by the user but 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
◆ AmenityData() [1/2]
AmenityData::AmenityData |
( |
| ) |
|
|
inline |
◆ AmenityData() [2/2]
AmenityData::AmenityData |
( |
vector< Amenities > |
amenities, |
|
|
double |
minLat, |
|
|
double |
minLon, |
|
|
double |
maxLat, |
|
|
double |
maxLon, |
|
|
int |
count |
|
) |
| |
|
inline |
Constructor
- Parameters
-
data | amenity data |
minLat | minimum latitude |
minLon | minimum longitude |
maxLat | maximum latitude |
maxLon | maximum longitude |
count | number of amenities |
◆ addAmenities()
void AmenityData::addAmenities |
( |
Amenities |
amenity | ) |
|
|
inline |
set Amenity data
- Parameters
-
amenity | amenity data to be added |
◆ getAmenities()
vector<Amenities> AmenityData::getAmenities |
( |
| ) |
|
|
inline |
get Amenity data
- Returns
- amenity data
◆ getCount()
int AmenityData::getCount |
( |
| ) |
|
|
inline |
get the count of amenities
- Parameters
-
◆ getMaxLat()
double AmenityData::getMaxLat |
( |
| ) |
|
|
inline |
get the maximum latitude of this amenity data
- Returns
- latitude maximum
◆ getMaxLon()
double AmenityData::getMaxLon |
( |
| ) |
|
|
inline |
get the maximum longitude of this amenity data
- Returns
- longitude maximum
◆ getMinLat()
double AmenityData::getMinLat |
( |
| ) |
|
|
inline |
get the minimum latitude of this amenity data
- Returns
- latitude minimum
◆ getMinLon()
double AmenityData::getMinLon |
( |
| ) |
|
|
inline |
get the minimum longitude of this amenity data
- Returns
- longitude minimum
◆ setCount()
void AmenityData::setCount |
( |
int |
c | ) |
|
|
inline |
set the count of amenities
- Parameters
-
count | amenity count to be set |
◆ setMaxLat()
void AmenityData::setMaxLat |
( |
double |
lat | ) |
|
|
inline |
set the maximum latitude of this amenity data
- Parameters
-
maxLat | latitude maximum to be set |
◆ setMaxLon()
void AmenityData::setMaxLon |
( |
double |
longitude | ) |
|
|
inline |
set the maximum longitude of this amenity data
- Parameters
-
maxLon | longitude maximum to be set |
◆ setMinLat()
void AmenityData::setMinLat |
( |
double |
lat | ) |
|
|
inline |
set the minimum latitude of this amenity data
- Parameters
-
minLat | latitude minimum to be set |
◆ setMinLon()
void AmenityData::setMinLon |
( |
double |
longitude | ) |
|
|
inline |
set the minimum longitude of this amenity data
- Parameters
-
minLon | longitude minimum to be set |
The documentation for this class was generated from the following file: