Bridges-Python  3.4.4
Bridges(Python API)
Public Member Functions | Public Attributes | List of all members
bridges.data_src_dependent.amenity.Amenity Class Reference

Detailed Description

This class is a helper class to be used with amenities data retrieved from OpenStreet Map data.

The dataset contains amenity id, latitude, longitude, name, and a list of various other values.

This object is generally not created by the user, to see how its created check out bridges::data_src_dependent::data_source::get_amenity_data()

See also
For an example, check out https://bridgesuncc.github.io/tutorials/Data_Amenity.html
Author
Jay Strahler
Date
12/28/20

Public Member Functions

def id (self)
 Get id of amenity. More...
 
def id (self, id_val)
 Set id of amenity. More...
 
def lat (self)
 Get latitude of amenity. More...
 
def lat (self, lat_val)
 Set latitude of amenity. More...
 
def lon (self)
 Get longitude of amenity. More...
 
def lon (self, lon_val)
 Set longitude of amenity. More...
 
def name (self)
 Get name of amenity. More...
 
def name (self, name_val)
 Set name of amenity. More...
 
def other (self)
 
def other (self, other_data)
 Set other of amenity. More...
 
def __init__ (self)
 constructor - initialize object More...
 

Public Attributes

 id_val
 
 lat_val
 
 lon_val
 
 name_val
 
 other_data
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.data_src_dependent.amenity.Amenity.__init__ (   self)

constructor - initialize object

Member Function Documentation

◆ id() [1/2]

def bridges.data_src_dependent.amenity.Amenity.id (   self)

Get id of amenity.

Returns
id of amenity

◆ id() [2/2]

def bridges.data_src_dependent.amenity.Amenity.id (   self,
  id_val 
)

Set id of amenity.

Parameters
id_valid of amenity

◆ lat() [1/2]

def bridges.data_src_dependent.amenity.Amenity.lat (   self)

Get latitude of amenity.

Returns
latitude of amenity

◆ lat() [2/2]

def bridges.data_src_dependent.amenity.Amenity.lat (   self,
  lat_val 
)

Set latitude of amenity.

Parameters
lat_vallatitude of amenity to set

◆ lon() [1/2]

def bridges.data_src_dependent.amenity.Amenity.lon (   self)

Get longitude of amenity.

Returns
longitude of amenity

◆ lon() [2/2]

def bridges.data_src_dependent.amenity.Amenity.lon (   self,
  lon_val 
)

Set longitude of amenity.

Parameters
lon_vallongitude of amenity to set

◆ name() [1/2]

def bridges.data_src_dependent.amenity.Amenity.name (   self)

Get name of amenity.

Returns
name of amenity

◆ name() [2/2]

def bridges.data_src_dependent.amenity.Amenity.name (   self,
  name_val 
)

Set name of amenity.

Parameters
name_valname of amenity to set

◆ other() [1/2]

def bridges.data_src_dependent.amenity.Amenity.other (   self)

◆ other() [2/2]

def bridges.data_src_dependent.amenity.Amenity.other (   self,
  other_data 
)

Set other of amenity.

Parameters
other_dataother data of amenity

Member Data Documentation

◆ id_val

bridges.data_src_dependent.amenity.Amenity.id_val

◆ lat_val

bridges.data_src_dependent.amenity.Amenity.lat_val

◆ lon_val

bridges.data_src_dependent.amenity.Amenity.lon_val

◆ name_val

bridges.data_src_dependent.amenity.Amenity.name_val

◆ other_data

bridges.data_src_dependent.amenity.Amenity.other_data

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