Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::RouteInstructionBase Class Reference

RouteInstructionBase object. More...

Inheritance diagram for gem::RouteInstructionBase:
Collaboration diagram for gem::RouteInstructionBase:

Public Member Functions

bool hasSignpostInfo () const noexcept
 Check if signpost information is available.
const SignpostDetailsRef getSignpostDetails () const noexcept
 Get extended signpost details.
const StringRef getSignpostInstruction () const noexcept
 Get textual description for the signpost information.
const AbstractGeometryImageRef getRealisticNextTurnImage () const noexcept
 Get image for the realistic turn information.
TimeDistance getTimeDistanceToNextTurn () const noexcept
 Get distance to the next turn in meters, time in seconds.
TimeDistance getRemainingTravelTimeDistance () const noexcept
 Get remaining travel distance in meters and remaining travel time in seconds.
TimeDistance getRemainingTravelTimeDistanceToNextWaypoint () const noexcept
 Get remaining travel time in seconds to the next way point and the remaining travel distance in meters to the next way point.
TimeDistance getTraveledTimeDistance () const noexcept
 Get the traveled distance in meters and the traveled time in seconds.
const StringRef getCountryCodeISO () const noexcept
 Get ISO 3166-1 alpha-3 country code for the navigation instruction.
bool hasTurnInfo () const noexcept
 Check if turn information is available.
const ImageRef getTurnImage () const noexcept
 Get turn image.
const TurnDetailsRef getTurnDetails () const noexcept
 Get full details for the turn.
const StringRef getTurnInstruction () const noexcept
 Get textual description for the turn.
bool hasFollowRoadInfo () const noexcept
 Check if follow road information is available.
const StringRef getFollowRoadInstruction () const noexcept
 Get textual description for the follow road information.
bool hasRoadInfo () const noexcept
 Get if road information is available.
const RoadInfoListRef getRoadInfo () const noexcept
 Get road information.
const RoadInfoImageRef getRoadInfoImage () const noexcept
 Get road image.
const CoordinatesRef getCoordinates () const noexcept
 Get coordinates for this route instruction.
bool isExit () const noexcept
 Check if the route instruction is a main road exit instruction.
String getExitDetails () const
 Get the exit route instruction text.
bool isFerry () const noexcept
 Check if the route instruction is a ferry.
bool isTollRoad () const noexcept
 Check if the route instruction is a toll road.
bool isCommon () const noexcept
 Check if this instruction is of common type.
bool isEV () const noexcept
 Check if this instruction is part of an EV route.

Protected Member Functions

 RouteInstructionBase (const RouteInstructionBase &obj)=default
 Default copy constructor.
 RouteInstructionBase (RouteInstructionBase &&obj)=default
 Default move constructor.
RouteInstructionBase & operator= (const RouteInstructionBase &obj)=default
 noexcept is deduced
RouteInstructionBase & operator= (RouteInstructionBase &&obj)=default
 Default move assignment.
bool operator== (RouteInstructionBase const &item) const
 noexcept is deduced
bool operator!= (RouteInstructionBase const &item) const
 Compare if the route instructions are not identical.

Friends

class RouteInstruction
class PTRouteInstruction

Detailed Description

RouteInstructionBase object.

Implements share-read / copy-on-write Api object over IRouteInstruction.

Constructor & Destructor Documentation

◆ RouteInstructionBase() [1/2]

gem::RouteInstructionBase::RouteInstructionBase ( const RouteInstructionBase & obj)
protecteddefault

Default copy constructor.

Parameters
objRouteInstructionBase to copy from.

◆ RouteInstructionBase() [2/2]

gem::RouteInstructionBase::RouteInstructionBase ( RouteInstructionBase && obj)
protecteddefault

Default move constructor.

Parameters
objRouteInstructionBase to move from.

Member Function Documentation

◆ getCoordinates()

const CoordinatesRef gem::RouteInstructionBase::getCoordinates ( ) const
inlinenoexcept

Get coordinates for this route instruction.

Returns
Coordinates of the instruction location.

◆ getCountryCodeISO()

const StringRef gem::RouteInstructionBase::getCountryCodeISO ( ) const
inlinenoexcept

Get ISO 3166-1 alpha-3 country code for the navigation instruction.

Empty string means no country

Returns
StringRef Country ISO Code See: http://en.wikipedia.org/wiki/ISO_3166-1 for the list of codes.

◆ getExitDetails()

String gem::RouteInstructionBase::getExitDetails ( ) const
inline

Get the exit route instruction text.

If the instruction is not an exit, returns empty string and sets the API error to kNotFound

Returns
String that contains exit route instruction text

◆ getFollowRoadInstruction()

const StringRef gem::RouteInstructionBase::getFollowRoadInstruction ( ) const
inlinenoexcept

Get textual description for the follow road information.

Returns
String containing the follow road instruction.

◆ getRealisticNextTurnImage()

const AbstractGeometryImageRef gem::RouteInstructionBase::getRealisticNextTurnImage ( ) const
inlinenoexcept

Get image for the realistic turn information.

Returns
The image for the realistic next turn. The API user should check if the image is valid.

◆ getRemainingTravelTimeDistance()

TimeDistance gem::RouteInstructionBase::getRemainingTravelTimeDistance ( ) const
inlinenoexcept

Get remaining travel distance in meters and remaining travel time in seconds.

Returns
TimeDistance structure containing the remaining travel time and distance.

◆ getRemainingTravelTimeDistanceToNextWaypoint()

TimeDistance gem::RouteInstructionBase::getRemainingTravelTimeDistanceToNextWaypoint ( ) const
inlinenoexcept

Get remaining travel time in seconds to the next way point and the remaining travel distance in meters to the next way point.

Returns
TimeDistance structure containing the remaining distance and time to the next waypoint.

◆ getRoadInfo()

const RoadInfoListRef gem::RouteInstructionBase::getRoadInfo ( ) const
inlinenoexcept

Get road information.

Returns
a ref to a list containing the road information.

◆ getRoadInfoImage()

const RoadInfoImageRef gem::RouteInstructionBase::getRoadInfoImage ( ) const
inlinenoexcept

Get road image.

Returns
RoadInfo Image associated with the road information.

◆ getSignpostDetails()

const SignpostDetailsRef gem::RouteInstructionBase::getSignpostDetails ( ) const
inlinenoexcept

Get extended signpost details.

Returns
Details of the signpost as a structured object reference.

◆ getSignpostInstruction()

const StringRef gem::RouteInstructionBase::getSignpostInstruction ( ) const
inlinenoexcept

Get textual description for the signpost information.

Returns
getSignpostInstruction containing the signpost instructions.

◆ getTimeDistanceToNextTurn()

TimeDistance gem::RouteInstructionBase::getTimeDistanceToNextTurn ( ) const
inlinenoexcept

Get distance to the next turn in meters, time in seconds.

Returns
TimeDistance structure containing time and distance values to the next turn.

◆ getTraveledTimeDistance()

TimeDistance gem::RouteInstructionBase::getTraveledTimeDistance ( ) const
inlinenoexcept

Get the traveled distance in meters and the traveled time in seconds.

Returns
TimeDistance structure of traveled distance and time.

◆ getTurnDetails()

const TurnDetailsRef gem::RouteInstructionBase::getTurnDetails ( ) const
inlinenoexcept

Get full details for the turn.

Returns
Full details for the turn. This may be used instead of 'getTurnImage' in order to customize display in UI.

◆ getTurnImage()

const ImageRef gem::RouteInstructionBase::getTurnImage ( ) const
inlinenoexcept

Get turn image.

Returns
The image for the turn. The API user should check if the image is valid.

◆ getTurnInstruction()

const StringRef gem::RouteInstructionBase::getTurnInstruction ( ) const
inlinenoexcept

Get textual description for the turn.

Returns
StringRef containing the turn instruction.

◆ hasFollowRoadInfo()

bool gem::RouteInstructionBase::hasFollowRoadInfo ( ) const
inlinenoexcept

Check if follow road information is available.

Returns
True if follow road information is available, false otherwise.

◆ hasRoadInfo()

bool gem::RouteInstructionBase::hasRoadInfo ( ) const
inlinenoexcept

Get if road information is available.

Returns
True if road information is available, false otherwise.

◆ hasSignpostInfo()

bool gem::RouteInstructionBase::hasSignpostInfo ( ) const
inlinenoexcept

Check if signpost information is available.

Returns
True if signpost information is available, false otherwise.

◆ hasTurnInfo()

bool gem::RouteInstructionBase::hasTurnInfo ( ) const
inlinenoexcept

Check if turn information is available.

Returns
True if turn information is available, false otherwise.

◆ isCommon()

bool gem::RouteInstructionBase::isCommon ( ) const
inlinenoexcept

Check if this instruction is of common type.

A common type route instruction is part of a common type route segment, see RouteSegment::isCommon

Returns
True if instruction is common type, false otherwise.

◆ isEV()

bool gem::RouteInstructionBase::isEV ( ) const
inlinenoexcept

Check if this instruction is part of an EV route.

Returns
True if it is an EV route, false otherwise.

◆ isExit()

bool gem::RouteInstructionBase::isExit ( ) const
inlinenoexcept

Check if the route instruction is a main road exit instruction.

Returns
True if an exit is involved, false otherwise.

◆ isFerry()

bool gem::RouteInstructionBase::isFerry ( ) const
inlinenoexcept

Check if the route instruction is a ferry.

Returns
True if a ferry is involved, false otherwise.

◆ isTollRoad()

bool gem::RouteInstructionBase::isTollRoad ( ) const
inlinenoexcept

Check if the route instruction is a toll road.

Returns
True if a toll road is involved, false otherwise.

◆ operator!=()

bool gem::RouteInstructionBase::operator!= ( RouteInstructionBase const & item) const
inlineprotected

Compare if the route instructions are not identical.

Parameters
itemRouteInstructionBase to compare with.
Returns
True if the route instructions are not identical, false otherwise.

◆ operator=() [1/2]

RouteInstructionBase & gem::RouteInstructionBase::operator= ( const RouteInstructionBase & obj)
protecteddefault

noexcept is deduced

Default copy assignment

Parameters
objRouteInstructionBase to copy from.
Returns
RouteInstructionBase reference.

◆ operator=() [2/2]

RouteInstructionBase & gem::RouteInstructionBase::operator= ( RouteInstructionBase && obj)
protecteddefault

Default move assignment.

Parameters
objRouteInstructionBase to move from.
Returns
RouteInstructionBase reference.

◆ operator==()

bool gem::RouteInstructionBase::operator== ( RouteInstructionBase const & item) const
inlineprotected

noexcept is deduced

Compare if the route instructions are identical.

Parameters
itemRouteInstructionBase to compare with.
Returns
True if the route instructions are identical, false otherwise.

The comparison is done by calling the Equals method of the IRouteInstruction interface.