Bridges-C++  3.4.2
Bridges(C++ API)
Public Member Functions | List of all members
bridges::dataset::OSMEdge Class Reference

#include <OSMEdge.h>

Detailed Description

Class that hold Open Street Map edges.

Class that holds Open Street Map edges from https://openstreetmap.org

Objects from this class are typically not created by the user but contained in the OsmData object returned by bridges::DataSource::getOSMData()

See also
Check out how to use OSM data at: https://bridgesuncc.github.io/tutorials/Data_OSM.html
Author
Erik Saule, Kalpathi Subramanian
Date
2/14/19, 12/28/20

Public Member Functions

 OSMEdge (OSMVertex::OSMVertexID src, OSMVertex::OSMVertexID dest, double dist)
 
 OSMEdge (const OSMEdge *edge)
 
OSMVertex::OSMVertexID getSourceVertex () const
 
void setSourceVertex (OSMVertex::OSMVertexID src)
 
OSMVertex::OSMVertexID getDestinationVertex () const
 
void setDestinationVertex (OSMVertex::OSMVertexID dest)
 
double getEdgeLength () const
 
void setEdgeLength (double l)
 

Constructor & Destructor Documentation

◆ OSMEdge() [1/2]

bridges::dataset::OSMEdge::OSMEdge ( OSMVertex::OSMVertexID  src,
OSMVertex::OSMVertexID  dest,
double  dist 
)
inline

Constructor

Parameters
srcsource vertex of edge
destdestination vertex of edge
distlength of edge

◆ OSMEdge() [2/2]

bridges::dataset::OSMEdge::OSMEdge ( const OSMEdge edge)
inline

Constructor

Parameters
edgeedge data to be used for this edge

Member Function Documentation

◆ getDestinationVertex()

OSMVertex::OSMVertexID bridges::dataset::OSMEdge::getDestinationVertex ( ) const
inline

get destination vertex of edge

Returns
destination vertexID

◆ getEdgeLength()

double bridges::dataset::OSMEdge::getEdgeLength ( ) const
inline

get edge length of edge

Returns
edge length

◆ getSourceVertex()

OSMVertex::OSMVertexID bridges::dataset::OSMEdge::getSourceVertex ( ) const
inline

get source vertex of edge

Returns
source vertexID

◆ setDestinationVertex()

void bridges::dataset::OSMEdge::setDestinationVertex ( OSMVertex::OSMVertexID  dest)
inline

set destination vertex of edge

Parameters
destdestination vertexID

◆ setEdgeLength()

void bridges::dataset::OSMEdge::setEdgeLength ( double  l)
inline

set edge length

Parameters
ledge length

◆ setSourceVertex()

void bridges::dataset::OSMEdge::setSourceVertex ( OSMVertex::OSMVertexID  src)
inline

set source vertex of edge

Parameters
srcsource vertexID

The documentation for this class was generated from the following file: