|  | Bridges-Java 3.5.0
    Bridges(Java API) | 
Class that hold Open Street Map vertices. More...
| Public Member Functions | |
| OsmData () | |
| OsmData (OsmVertex[] vertices, OsmEdge[] edges, String name) | |
| OsmVertex[] | getVertices () | 
| void | setVertices (OsmVertex[] vertices) | 
| String | getName () | 
| void | setName (String name) | 
| OsmEdge[] | getEdges () | 
| void | setEdges (OsmEdge[] edges) | 
| double[] | getCartesianRangeY () | 
| double[] | getLatitudeRange () | 
| double[] | getLongitudeRange () | 
| double[] | getCartesianRangeX () | 
| void | getLatLongRange (double[] latr, double[] lonr) | 
| GraphAdjList< Integer, OsmVertex, Double > | getGraph () | 
Class that hold Open Street Map vertices.
This class holds Open Street Map data, from https://openstreetmap.org
Objects from this class are typically not created by the user but retruned 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.OsmData.OsmData | ( | ) | 
| double[] bridges.data_src_dependent.OsmData.getCartesianRangeX | ( | ) | 
get range of the x cartesian coordinates of vertex locations
| double[] bridges.data_src_dependent.OsmData.getCartesianRangeY | ( | ) | 
get range of the y cartesian coordinates of vertex locations
| OsmEdge[] bridges.data_src_dependent.OsmData.getEdges | ( | ) | 
| GraphAdjList< Integer, OsmVertex, Double > bridges.data_src_dependent.OsmData.getGraph | ( | ) | 
Construct a graph out of the vertex and edge data of the OSM object. The graph will associate the length of the edge to the graph edge. No data is bound to the vertices.
The vertices of the graph will be located at the location given in the data set converted to cartesian coordinate.
| double[] bridges.data_src_dependent.OsmData.getLatitudeRange | ( | ) | 
get range of the latitude of vertex locations
| void bridges.data_src_dependent.OsmData.getLatLongRange | ( | double[] | latr, | 
| double[] | lonr | ||
| ) | 
get the range of dataset in Cartesian coords
| latr | double[2]: min and max | 
| lonr | double[2] | 
| double[] bridges.data_src_dependent.OsmData.getLongitudeRange | ( | ) | 
get range of longitude of vertex locations
| String bridges.data_src_dependent.OsmData.getName | ( | ) | 
get name of OsmData
| OsmVertex[] bridges.data_src_dependent.OsmData.getVertices | ( | ) | 
Gets the nodes of the dataset
| void bridges.data_src_dependent.OsmData.setEdges | ( | OsmEdge[] | edges | ) | 
| void bridges.data_src_dependent.OsmData.setName | ( | String | name | ) | 
set name of OsmData
| name | String | 
| void bridges.data_src_dependent.OsmData.setVertices | ( | OsmVertex[] | vertices | ) | 
Sets the nodes of the map
| vertices | nodes of the map |