Class that hold Open Street Map edges.
Class that holds Open Street Map edges from https://openstreetmap.org
This object is generally not created by the user, to see how its created check out bridges::data_src_dependent::data_source::get_osm_data()
- See also
- For an example, check out https://bridgesuncc.github.io/tutorials/Data_OSM.html
- Author
- Erik Saule, Matthew Mcquaigue, Jay Strahler, Kalpathi Subramanian
- Date
- 2019, 12/28/20
◆ __init__()
def bridges.data_src_dependent.osm.OsmEdge.__init__ |
( |
|
self, |
|
|
int |
source, |
|
|
int |
destination, |
|
|
float |
distance |
|
) |
| |
Constructor.
- Parameters
-
source | source vertex of edge |
destination | destination vertex of edge |
distance | distance between the source and destination vertices |
◆ destination() [1/3]
int bridges.data_src_dependent.osm.OsmEdge.destination |
( |
|
self | ) |
|
Get destination vertex.
- Returns
- destination vertex of edge
◆ destination() [2/3]
def bridges.data_src_dependent.osm.OsmEdge.destination |
( |
|
self | ) |
|
delete destination vertex
◆ destination() [3/3]
def bridges.data_src_dependent.osm.OsmEdge.destination |
( |
|
self, |
|
|
int |
destination |
|
) |
| |
Set destination vertex.
- Parameters
-
destination | destination vertex to set (int) |
◆ distance() [1/3]
float bridges.data_src_dependent.osm.OsmEdge.distance |
( |
|
self | ) |
|
Get distance between two vertices of the edge (float)
- Returns
- edge length
◆ distance() [2/3]
def bridges.data_src_dependent.osm.OsmEdge.distance |
( |
|
self | ) |
|
Delete distance between edge vertices.
◆ distance() [3/3]
def bridges.data_src_dependent.osm.OsmEdge.distance |
( |
|
self, |
|
|
float |
distance |
|
) |
| |
Set distance between source and destination.
- Parameters
-
distance | distance to set (float) |
◆ source() [1/3]
int bridges.data_src_dependent.osm.OsmEdge.source |
( |
|
self | ) |
|
Get source vertex (int)
- Returns
- source vertex of edge
◆ source() [2/3]
def bridges.data_src_dependent.osm.OsmEdge.source |
( |
|
self | ) |
|
◆ source() [3/3]
def bridges.data_src_dependent.osm.OsmEdge.source |
( |
|
self, |
|
|
int |
source |
|
) |
| |
Set source vertex.
- Parameters
-
source | source vertex to set |
◆ destination
bridges.data_src_dependent.osm.OsmEdge.destination |
◆ distance
bridges.data_src_dependent.osm.OsmEdge.distance |
◆ source
bridges.data_src_dependent.osm.OsmEdge.source |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-python/bridges/data_src_dependent/osm.py