Skip To Content ArcGIS for Developers Sign In Dashboard

RouteResult Class

(Esri::ArcGISRuntime::RouteResult)

The result from a RouteTask. More...

Header: #include <RouteResult>
Since: Esri::ArcGISRuntime 100.0

Public Functions

RouteResult()
RouteResult(const RouteResult &other)
RouteResult(RouteResult &&other)
~RouteResult()
QString directionsLanguage() const
bool isEmpty() const
QStringList messages() const
QList<PointBarrier> pointBarriers() const
QList<PolygonBarrier> polygonBarriers() const
QList<PolylineBarrier> polylineBarriers() const
QList<Route> routes() const
RouteResult &operator=(const RouteResult &other)
RouteResult &operator=(RouteResult &&other)

Detailed Description

The result from a RouteTask.

This is the result object returned from a RouteTask once it completes successfully. It contains a list of Routes, which lets you acccess the route geometry, direction maneuvers, and so on.

Member Function Documentation

RouteResult::RouteResult()

Default constructor.

Warning: This is for convenience only and will construct an empty object.

RouteResult::RouteResult(const RouteResult &other)

Copy constructor from other RouteResult.

RouteResult::RouteResult(RouteResult &&other)

Move constructor from other RouteResult.

RouteResult::~RouteResult()

Destructor.

QString RouteResult::directionsLanguage() const

Returns directions language.

This function was introduced in Esri::ArcGISRuntime 100.2.

bool RouteResult::isEmpty() const

Returns true if this RouteTaskInfo is empty.

QStringList RouteResult::messages() const

Returns a list of messages about the RouteResult.

QList<PointBarrier> RouteResult::pointBarriers() const

Returns a list of the point barriers used in the RouteTask.

Only applicable if RouteParameters::isReturnPointBarriers used in this RouteTask is true.

QList<PolygonBarrier> RouteResult::polygonBarriers() const

Returns a list of the polygon barriers used in the RouteTask.

Only applicable if RouteParameters::isReturnPolygonBarriers used in this RouteTask is true.

QList<PolylineBarrier> RouteResult::polylineBarriers() const

Returns a list of the polyline barriers used in the RouteTask.

Only applicable if RouteParameters::isReturnPolylineBarriers used in this RouteTask is true.

QList<Route> RouteResult::routes() const

Returns a list of the resulting Routes.

Only applicable if RouteParameters::isReturnRoutes used in this RouteTask is true.

RouteResult &RouteResult::operator=(const RouteResult &other)

Assignment operator from other RouteResult.

RouteResult &RouteResult::operator=(RouteResult &&other)

Move operator from other RouteResult.


Feedback on this topic?