getRoadElements

open fun getRoadElements(@NonNull() callback: Route.RoadElementsCallback)

Returns a list of RoadElement objects for current route object from start. Theelements are generated asynchronously and returned via callback. The callback will be calledon main thread.Note: This array doesn't change while navigating.

open fun getRoadElements(@NonNull() callback: Route.RoadElementsCallback, @Nullable() executor: Executor)

Returns a list of RoadElement objects for current route object from start. Theelements are generated asynchronously and returned via callback. The callback will be calledon provided executor or on main thread if null.Note: This array doesn't change while navigating.