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

#include <OSMVertex.h>

Detailed Description

Class that hold Open Street Map vertices.

Class that holds Open Street Map vertices 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 Types

typedef long OSMVertexID
 

Public Member Functions

 OSMVertex ()
 
 OSMVertex (OSMVertexID vid, double latit, double longit)
 
 OSMVertex (const OSMVertex *vert)
 
double getLatitude () const
 
void setLatitude (double latit)
 
double getLongitude () const
 
void setLongitude (double longit)
 
void getCartesianCoords (double *coords) const
 
void setVertexID (OSMVertexID vid)
 
OSMVertexID getVertexID () const
 

Member Typedef Documentation

◆ OSMVertexID

Constructor & Destructor Documentation

◆ OSMVertex() [1/3]

bridges::dataset::OSMVertex::OSMVertex ( )
inline

Default Constructor

◆ OSMVertex() [2/3]

bridges::dataset::OSMVertex::OSMVertex ( OSMVertexID  vid,
double  latit,
double  longit 
)
inline

Constructor

Parameters
vidid of vertex
latitlatitude position of vertex
longitlongitude position of vertex

◆ OSMVertex() [3/3]

bridges::dataset::OSMVertex::OSMVertex ( const OSMVertex vert)
inline

Constructor

Parameters
vertvertex whose attributes copied into this object

Member Function Documentation

◆ getCartesianCoords()

void bridges::dataset::OSMVertex::getCartesianCoords ( double *  coords) const
inline

get Cartesian coords of provided lat/long position

Parameters
[out]coordscartesian coordinate coords[0] is x, coords[1] is y

◆ getLatitude()

double bridges::dataset::OSMVertex::getLatitude ( ) const
inline

get latitude of node

Returns
latitude of the vertex

◆ getLongitude()

double bridges::dataset::OSMVertex::getLongitude ( ) const
inline

get longitude of vertex

Returns
longitude of node

◆ getVertexID()

OSMVertexID bridges::dataset::OSMVertex::getVertexID ( ) const
inline

get id of this vertex

Returns
id of this vertex

◆ setLatitude()

void bridges::dataset::OSMVertex::setLatitude ( double  latit)
inline

set latitude of quake location

Parameters
latitlatitude of node to set

◆ setLongitude()

void bridges::dataset::OSMVertex::setLongitude ( double  longit)
inline

set longitude of vertex

Parameters
longitlongitude to be set

◆ setVertexID()

void bridges::dataset::OSMVertex::setVertexID ( OSMVertexID  vid)
inline

set id of this vertex

Parameters
vidvertex id to be used for this vertex

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