This class is a helper class to be used with amenities data retrieved from OpenStreet Map data.
More...
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
◆ __init__()
| def bridges.data_src_dependent.amenity.Amenity.__init__ |
( |
|
self | ) |
|
constructor - initialize object
◆ 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
-
◆ 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_val | latitude 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_val | longitude 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_val | name 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_data | other data of amenity |
◆ 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:
- bridges-python/bridges/data_src_dependent/amenity.py