get Road Elements
open fun getRoadElements(@NonNull() callback: Route.RoadElementsCallback)
Content copied to clipboard
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)
Content copied to clipboard
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.