Bridges-Java
3.4.4-dev2-4-g23cf54b
Bridges(Java API)
|
this is a class that defines an OpenStreet Map edge More...
Public Member Functions | |
OsmEdge (int source, int destination, double distance) | |
int | getSource () |
void | setSource (int source) |
int | getDestination () |
void | setDestination (int destination) |
double | getDistance () |
void | setDistance (double distance) |
Package Attributes | |
int | destination |
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
bridges.data_src_dependent.OsmEdge.OsmEdge | ( | int | source, |
int | destination, | ||
double | distance | ||
) |
constructor for OsmEdge
source | int, index of source vertex |
destination | int. index of destination vertex |
distance | double, distance between source and destination vertices |
int bridges.data_src_dependent.OsmEdge.getDestination | ( | ) |
get index of destination vertex
double bridges.data_src_dependent.OsmEdge.getDistance | ( | ) |
get distance between the source and destination vertices
int bridges.data_src_dependent.OsmEdge.getSource | ( | ) |
get index of source vertex
void bridges.data_src_dependent.OsmEdge.setDestination | ( | int | destination | ) |
set index of destination vertex
destination | int |
void bridges.data_src_dependent.OsmEdge.setDistance | ( | double | distance | ) |
set the distance between the source and destination vertices
distance | double |
void bridges.data_src_dependent.OsmEdge.setSource | ( | int | source | ) |
set index of source vertex
source | int |
|
package |