Represents Node in OpenStreetMap (a point on map)
More...
#include <Node.h>
Detailed Description
Represents Node in OpenStreetMap (a point on map)
Definition at line 23 of file Node.h.
Constructor & Destructor Documentation
osm::Node::Node |
( |
int64_t |
id, |
|
|
double |
lat = 0 , |
|
|
double |
lon = 0 |
|
) |
| |
Constructs a node with given id and position.
- Parameters:
-
id | |
lat | latitude |
lon | longitude |
Definition at line 19 of file Node.cpp.
osm::Node::~Node |
( |
| ) |
[virtual] |
Member Function Documentation
void osm::Node::add_to_relation |
( |
osmdb::ElementImporter & |
db, |
|
|
int64_t |
parentid, |
|
|
std::string const & |
role |
|
) |
| [virtual] |
Execute the needed method of db to insert this element as member into relation.
- Parameters:
-
db | to use when inserting |
parentid | relation id |
role | role to use when inserting |
Implements osm::Element.
Definition at line 56 of file Node.cpp.
Fill attributes and possibly other information from db.
- Parameters:
-
Implements osm::Element.
Definition at line 49 of file Node.cpp.
boost::property_tree::ptree osm::Node::get_description |
( |
| ) |
[virtual] |
- Returns:
- a description of this element (used for displaying)
Implements osm::Element.
Definition at line 34 of file Node.cpp.
int64_t osm::Node::get_id |
( |
| ) |
const [virtual] |
bool osm::Node::operator!= |
( |
Node const & |
other | ) |
const |
bool osm::Node::operator== |
( |
Node const & |
other | ) |
const |
Field Documentation
Position of this Node.
Definition at line 39 of file Node.h.
Attributes of this Node.
Definition at line 43 of file Node.h.
The documentation for this class was generated from the following files:
- /home/martin/workspace/OpenStreetNav/src/elements/Node.h
- /home/martin/workspace/OpenStreetNav/src/elements/Node.cpp