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

Detailed Description

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

Public Member Functions

 Amenity ()
 
 Amenity (long id_val, double lat, double lon, String name, String[] other)
 
long getId ()
 
void setId (long id_val)
 
double getLat ()
 
void setLat (double lat)
 
double getLon ()
 
void setLon (double lon)
 
String getName ()
 
void setName (String name)
 
String[] getOther ()
 
void setOther (String[] other)
 

Constructor & Destructor Documentation

◆ Amenity() [1/2]

bridges.data_src_dependent.Amenity.Amenity ( )

Default Constructor

◆ Amenity() [2/2]

bridges.data_src_dependent.Amenity.Amenity ( long  id_val,
double  lat,
double  lon,
String  name,
String[]  other 
)

Constructor

Parameters
id_valAmenity ID as stored in Open Street Maps
latLatitude of Amenity
lonLongitude of Amenity
nameName of Amenity as found in Open Street Maps
otherList of special values that may have come with the amenity

Member Function Documentation

◆ 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
id_valID value to set

◆ setLat()

void bridges.data_src_dependent.Amenity.setLat ( double  lat)

set the latitude value of this amenity

Parameters
latlatitude position to set

◆ setLon()

void bridges.data_src_dependent.Amenity.setLon ( double  lon)

set the longitude value of this amenity

Parameters
lonlongitude position to set

◆ setName()

void bridges.data_src_dependent.Amenity.setName ( String  name)

set the name of this amenity

Parameters
namename of amenity to set

◆ setOther()

void bridges.data_src_dependent.Amenity.setOther ( String[]  other)

set the extra data present for certain amenities

Parameters
other

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