Bridges-Java  3.3.0
Bridges(Java API)
Public Member Functions | List of all members
bridges.data_src_dependent.AmenityData Class Reference

Detailed Description

Class that hold 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::connect::DataSource::getAmenityData()

Check out the tutorial on getting amenity data at https://bridgesuncc.github.io/tutorials/Data_Amenity.html

Author
Jay Strahler
Date
12/28/20

Public Member Functions

 AmenityData ()
 
 AmenityData (List< Amenities > data, double minLat, double minLon, double maxLat, double maxLon, int count)
 
List< AmenitiesgetAmenities ()
 
void addAmenities (Amenities amenity)
 
double getMinLat ()
 
void setMinLat (double minLat)
 
double getMinLon ()
 
void setMinLon (double minLon)
 
double getMaxLat ()
 
void setMaxLat (double maxLat)
 
double getMaxLon ()
 
void setMaxLon (double maxLon)
 
int getCount ()
 get the count of amenities More...
 
void setCount (int count)
 

Constructor & Destructor Documentation

◆ AmenityData() [1/2]

bridges.data_src_dependent.AmenityData.AmenityData ( )

Default Constructor

◆ AmenityData() [2/2]

bridges.data_src_dependent.AmenityData.AmenityData ( List< Amenities data,
double  minLat,
double  minLon,
double  maxLat,
double  maxLon,
int  count 
)

Constructor

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

Member Function Documentation

◆ addAmenities()

void bridges.data_src_dependent.AmenityData.addAmenities ( Amenities  amenity)

set Amenity data

Parameters
amenityamenity data to be added

◆ getAmenities()

List<Amenities> bridges.data_src_dependent.AmenityData.getAmenities ( )

get Amenity data

Returns
amenity data

◆ getCount()

int bridges.data_src_dependent.AmenityData.getCount ( )

get the count of amenities

Returns
count of amenities

◆ getMaxLat()

double bridges.data_src_dependent.AmenityData.getMaxLat ( )

get the maximum latitude of this amenity data

Returns
latitude maximum

◆ getMaxLon()

double bridges.data_src_dependent.AmenityData.getMaxLon ( )

get the maximum longitude of this amenity data

Returns
longitude maximum

◆ getMinLat()

double bridges.data_src_dependent.AmenityData.getMinLat ( )

get the minimum latitude of this amenity data

Returns
latitude minimum

◆ getMinLon()

double bridges.data_src_dependent.AmenityData.getMinLon ( )

get the minimum longitude of this amenity data

Returns
longitude minimum

◆ setCount()

void bridges.data_src_dependent.AmenityData.setCount ( int  count)

set the count of amenities

Parameters
countamenity count to be set

◆ setMaxLat()

void bridges.data_src_dependent.AmenityData.setMaxLat ( double  maxLat)

set the maximum latitude of this amenity data

Parameters
maxLatlatitude maximum to be set

◆ setMaxLon()

void bridges.data_src_dependent.AmenityData.setMaxLon ( double  maxLon)

set the maximum longitude of this amenity data

Parameters
maxLonlongitude maximum to be set

◆ setMinLat()

void bridges.data_src_dependent.AmenityData.setMinLat ( double  minLat)

set the minimum latitude of this amenity data

Parameters
minLatlatitude minimum to be set

◆ setMinLon()

void bridges.data_src_dependent.AmenityData.setMinLon ( double  minLon)

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: