GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
Loading...
Searching...
No Matches
geodesk::Node Class Reference

A Feature that represents a single point. More...

#include <Node.h>

Inheritance diagram for geodesk::Node:

Public Member Functions

Type & Identity
FeatureType type () const noexcept
 FeatureType::NODE
 
int64_t id () const noexcept
 The ID of this Node.
 
bool isNode () const noexcept
 Always true
 
bool isAnonymousNode () const noexcept
 true if this Feature is an anonymous node.
 
bool isWay () const noexcept
 Always false
 
bool isRelation () const noexcept
 Always false
 
bool isArea () const noexcept
 Always false
 
bool belongsToRelation () const noexcept
 true if this Node belongs to at least one Relation.
 
StringValue role () const noexcept
 The Node's role in its Relation, if it was returned via members() or Features::membersOf(), otherwise an empty string.
 

Detailed Description

A Feature that represents a single point.

Member Function Documentation

◆ belongsToRelation()

bool geodesk::Node::belongsToRelation ( ) const
noexcept

true if this Node belongs to at least one Relation.

Always false if this Node is an anonymous node/

◆ id()

int64_t geodesk::Node::id ( ) const
noexcept

The ID of this Node.

Returns
the ID of the Node

◆ isAnonymousNode()

bool geodesk::Node::isAnonymousNode ( ) const
noexcept

true if this Feature is an anonymous node.

An anonymous node is a Node that has no tags and does not belong to any relation; it merely exists as a vertex of a Way. Its ID is always 0 and its FeaturePtr is a nullptr.

◆ isArea()

bool geodesk::Node::isArea ( ) const
noexcept

Always false

◆ isNode()

bool geodesk::Node::isNode ( ) const
noexcept

Always true

◆ isRelation()

bool geodesk::Node::isRelation ( ) const
noexcept

Always false

◆ isWay()

bool geodesk::Node::isWay ( ) const
noexcept

Always false

◆ role()

StringValue geodesk::Node::role ( ) const
noexcept

The Node's role in its Relation, if it was returned via members() or Features::membersOf(), otherwise an empty string.

Returns
the Node's role (or an empty string)

◆ type()

FeatureType geodesk::Node::type ( ) const
noexcept

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