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

A Feature that represents a linestring, linear ring, or a simple polygon. More...

#include <Way.h>

Inheritance diagram for geodesk::Way:

Public Member Functions

Type & Identity
FeatureType type () const noexcept
 FeatureType::WAY
 
int64_t id () const noexcept
 The ID of this Way.
 
bool isNode () const noexcept
 Always false
 
bool isAnonymousNode () const noexcept
 Always false
 
bool isWay () const noexcept
 Always true
 
bool isRelation () const noexcept
 Always false
 
bool isArea () const noexcept
 true if this Way represents an area.
 
bool belongsToRelation () const noexcept
 true if this Way belongs to at least one Relation.
 
StringValue role () const noexcept
 The Way'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 linestring, linear ring, or a simple polygon.

Every Way has two or more nodes, which can be retrieved via nodes().

Member Function Documentation

◆ belongsToRelation()

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

true if this Way belongs to at least one Relation.

◆ id()

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

The ID of this Way.

◆ isAnonymousNode()

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

Always false

◆ isArea()

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

true if this Way represents an area.

◆ isNode()

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

Always false

◆ isRelation()

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

Always false

◆ isWay()

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

Always true

◆ role()

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

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

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

◆ type()

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

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