Bridges-Python  3.4.3
Bridges(Python API)
Public Member Functions | Public Attributes | List of all members
bridges.data_src_dependent.osm.OsmEdge Class Reference

Detailed Description

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

Public Member Functions

int source (self)
 Get source vertex (int) More...
 
def source (self, int source)
 Set source vertex. More...
 
def source (self)
 delete source vertex More...
 
int destination (self)
 Get destination vertex. More...
 
def destination (self, int destination)
 Set destination vertex. More...
 
def destination (self)
 delete destination vertex More...
 
float distance (self)
 Get distance between two vertices of the edge (float) More...
 
def distance (self, float distance)
 Set distance between source and destination. More...
 
def distance (self)
 Delete distance between edge vertices. More...
 
def __init__ (self, int source, int destination, float distance)
 Constructor. More...
 

Public Attributes

 source
 
 destination
 
 distance
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.data_src_dependent.osm.OsmEdge.__init__ (   self,
int  source,
int  destination,
float  distance 
)

Constructor.

Parameters
sourcesource vertex of edge
destinationdestination vertex of edge
distancedistance between the source and destination vertices

Member Function Documentation

◆ 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
destinationdestination 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
distancedistance 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)

delete source vertex

◆ source() [3/3]

def bridges.data_src_dependent.osm.OsmEdge.source (   self,
int  source 
)

Set source vertex.

Parameters
sourcesource vertex to set

Member Data Documentation

◆ 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: