RouteSegmentBase object.
More...
|
| | RouteSegmentBase (const RouteSegmentBase &obj)=default |
| | Default copy constructor.
|
| | RouteSegmentBase (RouteSegmentBase &&obj)=default |
| | Default move constructor noexcept is deduced.
|
| RouteSegmentBase & | operator= (const RouteSegmentBase &obj)=default |
| | Default copy assignment.
|
| RouteSegmentBase & | operator= (RouteSegmentBase &&obj)=default |
| | Default move assignment noexcept is deduced.
|
|
|
class | RouteSegment |
|
class | PTRouteSegment |
RouteSegmentBase object.
Implements share-read / copy-on-write Api object over IRouteSegment.
◆ RouteSegmentBase() [1/2]
| gem::RouteSegmentBase::RouteSegmentBase |
( |
const RouteSegmentBase & | obj | ) |
|
|
protecteddefault |
Default copy constructor.
- Parameters
-
◆ RouteSegmentBase() [2/2]
| gem::RouteSegmentBase::RouteSegmentBase |
( |
RouteSegmentBase && | obj | ) |
|
|
protecteddefault |
Default move constructor noexcept is deduced.
- Parameters
-
◆ getGeographicArea()
Get geographic area of the route.
The geographic area is the smallest rectangle that can be drawn around the route.
- Returns
- Geographic area covered by the route, represented as a GeographicArea object.
◆ getIncursCosts()
| bool gem::RouteSegmentBase::getIncursCosts |
( |
| ) |
const |
|
inlinenoexcept |
Method to check if traveling the route or route segment incurs cost to the user.
- Returns
- True if the route incurs costs, false otherwise.
◆ getInstructions()
Get route instructions list.
- Returns
- A list of route instructions for the route segment.
◆ getSummary()
| String gem::RouteSegmentBase::getSummary |
( |
| ) |
const |
|
inlinenoexcept |
Get summary of the route segment.
- Returns
- A string containing the summary of the route segment.
◆ getTimeDistance()
| TimeDistance gem::RouteSegmentBase::getTimeDistance |
( |
| ) |
const |
|
inlinenoexcept |
Get length in meters and estimated travel time in seconds for the route / route segment.
- Returns
- Time and distance information for the route, encapsulated in a TimeDistance object.
◆ getTollSections()
Get segment toll sections.
- Returns
- The error code. On success, the toll sections are returned
◆ getWaypoints()
Get the list containing segment start and end waypoints.
- Returns
- A List of Landmarks along the route
◆ isCommon()
| bool gem::RouteSegmentBase::isCommon |
( |
| ) |
const |
|
inlinenoexcept |
Check if this segment is of common type.
A common type route segment has the same travel mode as the parent route.
E.g. a walk segment in a public transport route has isCommon = false
- Returns
- True if the segment is common type, false otherwise.
◆ isEV()
| bool gem::RouteSegmentBase::isEV |
( |
| ) |
const |
|
inlinenoexcept |
Check if this instruction is part of an EV route.
- Returns
- True if it is an EV route, false otherwise.
◆ operator=() [1/2]
| RouteSegmentBase & gem::RouteSegmentBase::operator= |
( |
const RouteSegmentBase & | obj | ) |
|
|
protecteddefault |
◆ operator=() [2/2]
| RouteSegmentBase & gem::RouteSegmentBase::operator= |
( |
RouteSegmentBase && | obj | ) |
|
|
protecteddefault |
Default move assignment noexcept is deduced.
- Parameters
-
- Returns
- RouteSegmentBase reference.