this is a class that defines an OpenStreet Map edge
Objects from this class are typically not created by the user but contained in the OsmData object returned by bridges::connect::DataSource::getOsmData()
Check out how to use OSM data at: https://bridgesuncc.github.io/tutorials/Data_OSM.html
- Author
- Erik Saule, Kalpathi Subramanian,
- Date
- 12/26/20
◆ OsmEdge()
bridges.data_src_dependent.OsmEdge.OsmEdge |
( |
int |
source, |
|
|
int |
destination, |
|
|
double |
distance |
|
) |
| |
constructor for OsmEdge
- Parameters
-
source | int, index of source vertex |
destination | int. index of destination vertex |
distance | double, distance between source and destination vertices |
◆ getDestination()
int bridges.data_src_dependent.OsmEdge.getDestination |
( |
| ) |
|
get index of destination vertex
- Returns
- int
◆ getDistance()
double bridges.data_src_dependent.OsmEdge.getDistance |
( |
| ) |
|
get distance between the source and destination vertices
- Returns
- int
◆ getSource()
int bridges.data_src_dependent.OsmEdge.getSource |
( |
| ) |
|
get index of source vertex
- Returns
- int
◆ setDestination()
void bridges.data_src_dependent.OsmEdge.setDestination |
( |
int |
destination | ) |
|
set index of destination vertex
- Parameters
-
◆ setDistance()
void bridges.data_src_dependent.OsmEdge.setDistance |
( |
double |
distance | ) |
|
set the distance between the source and destination vertices
- Parameters
-
◆ setSource()
void bridges.data_src_dependent.OsmEdge.setSource |
( |
int |
source | ) |
|
set index of source vertex
- Parameters
-
◆ destination
int bridges.data_src_dependent.OsmEdge.destination |
|
package |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-java/src/main/java/bridges/data_src_dependent/OsmEdge.java