Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
HMI Documentation
UpdateTurnList

UpdateTurnList

Type
Function
Sender
SDL
Purpose
Update embedded navigation's list of directions for the current route.

Request

Must
  1. Send BC.OnResetTimeout notification to SDL to reset the timeout in case HMI needs more time to process the request.

Parameters

Name Type Mandatory Additional
turnList Common.Turn false array: true
minsize: 1
maxsize: 100
softButtons Common.SoftButton false array: true
minsize: 0
maxsize: 1
appID Integer true

Response

Parameters

This RPC has no additional parameter requirements

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "method" : "Navigation.UpdateTurnList",
  "params" :
  {
    "turnList" :
    [
      {
        "navigationText" :  
        {
          "fieldName" :  "turnText",
          "fieldText" : "Turn Right"
        },
        "turnIcon" :
        {
           "value" : "tmp/SDL/app/Navi/icon_turn_right.jpeg",
           "imageType" :  "DYNAMIC"
        }
      },

      {
        "navigationText" :  
        {
          "fieldName" :  "turnText",
          "fieldText" : "Turn Left"
        },
        "turnIcon" :
        {
           "value" : "tmp/SDL/app/Navi/icon_turn_left.jpeg",
           "imageType" :  "DYNAMIC"
        }
      },

      {
        "navigationText" :  
        {
          "fieldName" :  "turnText",
          "fieldText" : "Go Forward"
        },
        "turnIcon" :
        {
           "value" : "tmp/SDL/app/Navi/icon_go_forward.jpeg",
           "imageType" :  "DYNAMIC"
        }
      }
    ],

    "softButtons" :
    {
        "type" :  "BOTH",
        "text" : "Return",
        "image" :
        {
           "value" : "tmp/SDL/app/Navi/icon_583.jpg",
           "imageType" : "DYNAMIC"
        },
        "isHighlighted" : true,
        "softButtonID" : 118,
        "systemAction" :  "DEFAULT_ACTION"
    },
    "appID" : 65368
  }
}

Example Response

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "result" :
  {
    "code" : 0,
    "method" : "Navigation.UpdateTurnList"
  }
}

Example Error

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 4,
    "message" : " A command was rejected because a higher priority command is requested",
    "data" :
    {
      "method" : "Navigation.UpdateTurnList"
    }
  }
}
View on GitHub.com
Previous Section Next Section