Bridges-C++  3.4.4
Bridges(C++ API)
Public Member Functions | List of all members
AmenityData Class Reference

#include <AmenityData.h>

Detailed Description

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

Public Member Functions

 AmenityData ()
 
 AmenityData (vector< Amenities > amenities, double minLat, double minLon, double maxLat, double maxLon, int count)
 
vector< Amenities > getAmenities ()
 
void addAmenities (Amenities amenity)
 
double getMinLat ()
 
void setMinLat (double lat)
 
double getMinLon ()
 
void setMinLon (double longitude)
 
double getMaxLat ()
 
void setMaxLat (double lat)
 
double getMaxLon ()
 
void setMaxLon (double longitude)
 
int getCount ()
 
void setCount (int c)
 

Constructor & Destructor Documentation

◆ AmenityData() [1/2]

AmenityData::AmenityData ( )
inline

Default Constructor

◆ AmenityData() [2/2]

AmenityData::AmenityData ( vector< Amenities >  amenities,
double  minLat,
double  minLon,
double  maxLat,
double  maxLon,
int  count 
)
inline

Constructor

Parameters
dataamenity data
minLatminimum latitude
minLonminimum longitude
maxLatmaximum latitude
maxLonmaximum longitude
countnumber of amenities

Member Function Documentation

◆ addAmenities()

void AmenityData::addAmenities ( Amenities  amenity)
inline

set Amenity data

Parameters
amenityamenity 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
countof amenities

◆ 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
countamenity count to be set

◆ setMaxLat()

void AmenityData::setMaxLat ( double  lat)
inline

set the maximum latitude of this amenity data

Parameters
maxLatlatitude maximum to be set

◆ setMaxLon()

void AmenityData::setMaxLon ( double  longitude)
inline

set the maximum longitude of this amenity data

Parameters
maxLonlongitude maximum to be set

◆ setMinLat()

void AmenityData::setMinLat ( double  lat)
inline

set the minimum latitude of this amenity data

Parameters
minLatlatitude minimum to be set

◆ setMinLon()

void AmenityData::setMinLon ( double  longitude)
inline

set the minimum longitude of this amenity data

Parameters
minLonlongitude minimum to be set

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