summaryrefslogtreecommitdiff
path: root/api/navigation-core/genivi-navigationcore-guidance.xml
blob: e03fc45f10b39a204aa8c78a13d2405e3be8397a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="introspect.xsl"?>
<!-- SPDX-License-Identifier: MPL-2.0
     Copyright (C) 2014, BMW Car IT GmbH, Continental Automotive GmbH, PCA Peugeot Citroën, XS Embedded GmbH,   TomTom International B.V., Alpine Electronics R&D Europe GmbH, AISIN AW CO., LTD.,  Neusoft Technology Solutions GmbH, Jaguar Land Rover Limited, Visteon Corporation
     This Source Code Form is subject to the terms of the
     Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
     this file, you can obtain one at http://mozilla.org/MPL/2.0/.
-->
<node xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="/org/genivi/navigationcore" xsi:noNamespaceSchemaLocation="introspect.xsd">
  <interface name="org.genivi.navigationcore.Guidance">
    <version>3.1.0 (03-03-2014)</version>
    <doc>
      <line>Guidance = This interface offers functions that implement the route-guidance functionality of a navigation system</line>
    </doc>
    <method name="GetVersion">
      <doc>
        <line>GetVersion = This method returns the API version implemented by the server application</line>
      </doc>
      <arg name="version" type="(qqqs)" direction="out">
        <doc>
          <line>version = struct(major,minor,micro,date)</line>
          <line>major = when the major changes, then backward compatibility with previous releases is not granted</line>
          <line>minor = when the minor changes, then backward compatibility with previous releases is granted, but something changed in the implementation of the API (e.g. new methods may have been added)</line>
          <line>micro = when the micro changes, then backward compatibility with previous releases is granted (bug fixes or documentation modifications)</line>
          <line>date = release date (e.g. 21-06-2011)</line>
        </doc>
      </arg>
    </method>
    <method name="StartGuidance">
      <doc>
        <line>StartGuidance = This method starts the guidance for a given route</line>
		<line>The guidanceStatus will change to ACTIVE</line>
      </doc>
      <arg name="sessionHandle" type="u" direction="in">
        <doc>
          <line>sessionHandle = Session handle. Range[0x0:0x7fffffff]. 0x0 is reserved as an invalid handle value</line>
        </doc>
      </arg>
      <arg name="routeHandle" type="u" direction="in">
        <doc>
          <line>routeHandle = Route handle. Range[0x0:0x7fffffff]. 0x0 is reserved as an invalid handle value</line>
        </doc>
      </arg>
    </method>
    <method name="StopGuidance">
      <doc>
        <line>StopGuidance = This method stops the guidance</line>
		<line>The guidanceStatus will change to INACTIVE</line>
      </doc>
      <arg name="sessionHandle" type="u" direction="in">
        <doc>
          <line>sessionHandle = Session handle. Range[0x0:0x7fffffff]. 0x0 is reserved as an invalid handle value</line>
        </doc>
      </arg>
    </method>
    <method name="SetVoiceGuidance">
      <doc>
        <line>SetVoiceGuidance = This method switch on/off the voice guidance</line>
      </doc>
      <arg name="activate" type="b" direction="in">
        <doc>
          <line>activation of the voice guidance</line>
        </doc>
      </arg>
      <arg name="voice" type="s" direction="in">
        <doc>
          <line>kind of voice (to be defined)</line>
        </doc>
      </arg>
      <error name="org.genivi.navigationcore.Guidance.Error.VoiceNotAllowed">
        <doc>
          <line>This error is generated if the voice generation is inactive </line>
        </doc>
      </error>
    </method>
    <method name="GetGuidanceDetails">
      <doc>
        <line>GetGuidanceDetails = This method retrieves guidance information </line>
      </doc>
      <arg name="voiceGuidance" type="b" direction="out">
        <doc>
          <line>voiceGuidance = if TRUE voice guidance is active</line>
        </doc>
      </arg>
      <arg name="vehicleOnTheRoad" type="b" direction="out">
        <doc>
          <line>vehicleOnTheRoad = if TRUE the vehicle is located on the road network</line>
        </doc>
      </arg>
      <arg name="isDestinationReached" type="b" direction="out">
        <doc>
          <line>isDestinationReached = if TRUE the destination has been reached</line>
        </doc>
      </arg>
      <arg name="maneuver" type="q" direction="out">
        <doc>
          <line>maneuver = enum(INVALID,CRUISE,MANEUVER_APPEARED,PRE_ADVICE,ADVICE,PASSED, ... )</line>
        </doc>
      </arg>
    </method>
    <method name="PlayVoiceManeuver">
      <doc>
        <line>PlayVoiceManeuver = This method plays or repeats the last voice guidance</line>
      </doc>
      <error name="org.genivi.navigationcore.Guidance.Error.VoiceNotAllowed">
        <doc>
          <line>This error is generated if the voice generation is inactive </line>
        </doc>
      </error>
    </method>
    <method name="GetWaypointInformation">
      <doc>
        <line>GetWaypointInformation = This method retrieves the information on the remaining way points of the route. A point can be the final destination as well as a stage defined by the user. The returned waypoints are ordered by their 'number'.</line>
      </doc>
      <arg name="requestedNumberOfWaypoints" type="q" direction="in">
        <doc>
          <line>requestedNumberOfWaypoints = the number of requested waypoints. If 0, all waypoints will be returned.</line>
        </doc>
      </arg>
      <arg name="numberOfWaypoints" type="q" direction="out">
        <doc>
          <line>numberOfWaypoints = the number of retrieved waypoints(NOTE: the number corresponds to the number of elements in the array)</line>
        </doc>
      </arg>
      <arg name="waypointsList" type="a(uuiqnnbq)" direction="out">
        <doc>
          <line>array[struct(waypointOffset,travelTime,direction,side,timeZone,daylightSavingTime,isDestination,number)]</line>
          <line>waypointOffset = the offset of the way point in meters from the beginning of the route</line>
          <line>travelTime = time to reach the way point in seconds</line>
          <line>direction = direction of the way point in degree relatively to the North. Range [0:360]</line>
          <line>side = enum(LEFT,RIGHT,NOT_AVAILABLE)</line>
          <line>timeZone = time zone of the way point. It is expressed as the time difference from the UTC in minutes</line>
          <line>daylightSavingTime = daylight saving time of the way point. It is expressed as the time difference from the UTC in minutes</line>
          <line>isDestination = if TRUE the way point is the destination</line>
          <line>number = number of the next waypoint (related to the waypoint list, first way point index is 0)</line>
        </doc>
      </arg>
    </method>
    <method name="GetDestinationInformation">
      <doc>
        <line>This method retrieves the information on the final destination</line>
      </doc>
      <arg name="offset" type="u" direction="out">
        <doc>
          <line>offset = offset of the destination in meter from the beginning of the route</line>
        </doc>
      </arg>
      <arg name="travelTime" type="u" direction="out">
        <doc>
          <line>travelTime = time to reach the destination in second</line>
        </doc>
      </arg>
      <arg name="direction" type="i" direction="out">
        <doc>
          <line>direction = direction of the destination in degree relatively to the North. Range [0:360]</line>
        </doc>
      </arg>
      <arg name="side" type="q" direction="out">
        <doc>
          <line>side = enum(LEFT,RIGHT,NOT_AVAILABLE)</line>
        </doc>
      </arg>
      <arg name="timeZone" type="n" direction="out">
        <doc>
          <line>timeZone = time zone of the destination. It is expressed as the time difference from the UTC in minutes</line>
        </doc>
      </arg>
      <arg name="daylightSavingTime" type="n" direction="out">
        <doc>
          <line>daylightSavingTime = daylight saving time of the destination. It is expressed as the time difference from the UTC in minutes</line>
        </doc>
      </arg>
    </method>
    <signal name="VehicleLeftTheRoadNetwork">
      <doc>
        <line>VehicleLeftTheRoadNetwork = This signal is emitted when the vehicle exits from the road network</line>
      </doc>
    </signal>
    <signal name="GuidanceStatusChanged">
      <doc>
        <line>GuidanceStatusChanged = This signal is emitted when the guidance status changes</line>
      </doc>
      <arg name="guidanceStatus" type="q">
        <doc>
          <line>guidanceStatus = enum(INVALID,ACTIVE,INACTIVE)</line>
          <line>ACTIVE means that NavigationCore is providing guidance information</line>
          <line>INACTIVE means that NavigationCore is not providing guidance information</line>
        </doc>
      </arg>
      <arg name="routeHandle" type="u">
        <doc>
          <line>routeHandle = Active route handle. Range[0x0:0x7fffffff]. 0x0 is reserved as an invalid handle value. Should be ignored when guidanceStatus=INACTIVE.</line>
        </doc>
      </arg>
    </signal>
    <signal name="WaypointReached">
      <doc>
        <line>WaypointReached = This signal is emitted when the destination is reached</line>
      </doc>
      <arg name="isDestination" type="b">
        <doc>
          <line>isDestination = flag. TRUE means that the way point is the destination</line>
        </doc>
      </arg>
    </signal>
    <signal name="ManeuverChanged">
      <doc>
        <line>This signal is emitted each time a maneuver event is going</line>
      </doc>
      <arg name="maneuver" type="q">
        <doc>
          <line>maneuver = enum(INVALID,CRUISE,MANEUVER_APPEARED,PRE_ADVICE,ADVICE,PASSED, ... )</line>
        </doc>
      </arg>
    </signal>
    <signal name="PositionOnRouteChanged">
      <doc>
        <line>PositionOnRouteChanged = This signal is emitted when the position on the route changes</line>
      </doc>
      <arg name="offsetOnRoute" type="u">
        <doc>
          <line>offsetOnRoute = the current offset on the route in meters from the beginning of the route</line>
        </doc>
      </arg>
    </signal>
    <method name="GetManeuversList">
      <doc>
        <line>GetManeuversList = This method retrieves the list of next maneuvers</line>
      </doc>
      <arg name="requestedNumberOfManeuvers" type="q" direction="in">
        <doc>
          <line>requestedNumberOfManeuvers = the number of requested maneuvers</line>
        </doc>
      </arg>
      <arg name="maneuverOffset" type="u" direction="in">
        <doc>
          <line>maneuverOffset = the offset of the first maneuver to retrieve</line>
        </doc>
      </arg>
      <arg name="numberOfManeuvers" type="q" direction="out">
        <doc>
          <line>numberOfManeuvers = the number of retrieved maneuvers</line>
          <line>Note: the number corresponds to the number of elements in the array</line>
        </doc>
      </arg>
      <arg name="maneuversList" type="a(ssqqua(uuiqa(qv)))" direction="out">
        <doc>
          <line>maneuversList = array[struct(roadNumberAfterManeuver,roadNameAfterManeuver,roadPropertyAfterManeuver,drivingSide,offsetOfNextManeuver,maneuverDetails)]</line>
          <line>roadNumberAfterManeuver = the number of the road after the maneuver (if a road has multiple road numbers, they will be separated by slashes ('/') and combined into one string)</line>
          <line>roadNameAfterManeuver = the name of the road after the maneuver</line>
          <line>roadPropertyAfterManeuver = enum(TOLL_ROADS, ... ,DEFAULT)</line>
          <line>drivingSide = enum(LEFT,RIGHT)</line>
          <line>offsetOfNextManeuver = the offset of the next maneuver in meters from the beginning of the route (next maneuver is the second maneuver on the route ahead)</line>
          <line>maneuverDetails = array[struct(offsetOfManeuver,travelTime,direction,maneuver,maneuverData)]</line>
          <line>offsetOfManeuver = the offset of the current maneuver in meters from the beginning of the route (current maneuver is the first maneuver on the route ahead)</line>
          <line>travelTime = travel time to the basic maneuver in seconds</line>
          <line>direction = direction of the maneuver in degree relatively to the North. Range [0:360]</line>
          <line>maneuver = enum(INVALID,STRAIGHT_ON,TURN,CROSSROAD,ROUNDABOUT,HIGHWAY_ENTER,HIGHWAY_EXIT,BIFURCATION,FOLLOW_SPECIFIC_LANE,DESTINATION,WAYPOINT,ROAD_FORM_CHANGE)</line>
          <line>maneuverData = array[struct(key, value)]</line>
          <line>key = enum(LENGTH,DIRECTION,EXIT_NUMBER,ROAD_FORM,LANE_INFO,LATITUDE,LONGITUDE,ALTITUDE)</line>
          <line>key = LENGTH, value of type 'q', when maneuver=ROUNDABOUT, expresses the length of the route segment between the entry to and the exit from the roundabout</line>
          <line>key = DIRECTION, value of type 'q', enum(INVALID,STRAIGHT_ON,LEFT,SLIGHT_LEFT,HARD_LEFT,RIGHT,SLIGHT_RIGHT,HARD_RIGHT,UTURN_RIGHT,UTURN_LEFT)</line>
          <line>key = EXIT_NUMBER, when maneuver=ROUNDABOUT, value of type 'q' that expresses the roundabout exit number</line>
          <line>                   when maneuver=HIGHWAY_EXIT, value of type 's' that expresses the highway exit number</line>
          <line>key = ROAD_FORM, value of type 'q', enum(INVALID,ROAD_REGULAR,ROAD_HIGHWAY_MOTORWAY,ROAD_FERRY)</line>
          <line>key = LANE_INFO, value of type 'a(uuuq)', array[struct(laneIndex,laneDirections,directionToFollow,divider)]</line>
          <line>laneIndex = number of the individual lane. Counting starts from zero, beginning at the left-most lane in the direction of travel (independent of the driving side)</line>
          <line>laneDirections = bitfield where each bit corresponds to a certain direction. A 1-bit indicates that the corresponding part of the lane arrow is drawn in the lane information on the street (see the lane info bitmasks)</line>
          <line>directionToFollow = bitfield where each bit corresponds to a certain direction. A 1-bit indicates that the corresponding part of the lane arrow matches the direction of the corresponding maneuver (see the lane info bitmasks). At most one bit of this bitmask will be set.</line>
          <line>The bitmasks are: LANE_INFO_BITMASK_STRAIGHT,LANE_INFO_BITMASK_SLIGHTRIGHT,LANE_INFO_BITMASK_RIGHT,LANE_INFO_BITMASK_SHARPRIGHT,LANE_INFO_BITMASK_RIGHTUTURN,LANE_INFO_BITMASK_SLIGHTLEFT,LANE_INFO_BITMASK_LEFT,LANE_INFO_BITMASK_SHARPLEFT,LANE_INFO_BITMASK_LEFTUTURN</line>
          <line>divider = indicates the type of divider between the given lane and the next one to the right, in the direction of travel</line>
          <line>          enum(DIVIDER_UNDEFINED,DIVIDER_INTERRUPTEDLONG,DIVIDER_INTERRUPTEDSHORT,DIVIDER_SOLIDSINGLE,DIVIDER_SOLIDDOUBLE,DIVIDER_SOLIDINTERRUPTED,DIVIDER_INTERRUPTEDSOLID)</line>
          <line>Note: To describe the divider on the left side of the left-most lane, use the following entry in LANE_INFO: (laneIndex=0xffffffff,laneDirections=0x00000000,directionToFollow=0x00000000,divider=type)</line>
          <line>key = LATITUDE, value = value of type 'd', that expresses the latitude of the starting point in format %3.6f. Range [-90:+90]. Example: 48.053250</line>
          <line>key = LONGITUDE, value = value of type 'd', that expresses the longitude of the starting point in format %3.6f. Range [-180:+180]. Example: 8.324500</line>
          <line>key = ALTITUDE, value = value of type 'i', that expresses the altitude of the starting point in meters</line>
        </doc>
      </arg>
      <error name="org.genivi.navigationcore.Guidance.Error.NoManeuver">
        <doc>
          <line>This error is generated in case there's no maneuver until the destination</line>
        </doc>
      </error>
    </method>
    <signal name="VehicleLeftTheRoute">
      <doc>
        <line>VehicleLeftTheRoute = This signal is emitted when the vehicle has left the route</line>
      </doc>
    </signal>
    <method name="SetRouteCalculationMode">
      <doc>
        <line>SetRouteCalculationMode = This method configures the way the navigation application wants the navigation core to behave of reroute trigger</line>
      </doc>
      <arg name="sessionHandle" type="u" direction="in">
        <doc>
          <line>sessionHandle = Session handle. Range[0x0:0x7fffffff]. 0x0 is reserved as an invalid handle value</line>
        </doc>
      </arg>
      <arg name="routeCalculationMode" type="q" direction="in">
        <doc>
          <line>routeCalculationMode = enum(INVALID,ALL_MANUAL,ALL_AUTOMATIC,TRAFFIC_MANUAL,OFF_ROUTE_MANUAL)</line>
        </doc>
      </arg>
    </method>
    <method name="SkipNextManeuver">
      <doc>
        <line>SkipNextManeuver = This method allows to jump behind the current maneuver</line>
      </doc>
      <arg name="sessionHandle" type="u" direction="in">
        <doc>
          <line>sessionHandle = Session handle. Range[0x0:0x7fffffff]. 0x0 is reserved as an invalid handle value</line>
        </doc>
      </arg>
      <error name="org.genivi.navigationcore.Guidance.Error.NoManeuver">
        <doc>
          <line>This error is generated in case there's no maneuver until the destination</line>
        </doc>
      </error>
    </method>
    <method name="GetGuidanceStatus">
      <doc>
        <line>GetGuidanceStatus = This method retrieves the guidance status</line>
      </doc>
      <arg name="guidanceStatus" type="q" direction="out">
        <doc>
          <line>guidanceStatus = enum(INVALID,ACTIVE,INACTIVE)</line>
          <line>ACTIVE means that NavigationCore is providing guidance information</line>
          <line>INACTIVE means that NavigationCore is not providing guidance information</line>
        </doc>
      </arg>
      <arg name="routeHandle" type="u" direction="out">
        <doc>
          <line>routeHandle = Active route handle. Range[0x0:0x7fffffff]. 0x0 is reserved as an invalid handle value. Should be ignored when guidanceStatus=INACTIVE</line>
        </doc>
      </arg>
    </method>
    <method name="SetVoiceGuidanceSettings">
      <doc>
        <line>SetVoiceGuidanceSettings = This method sets the voice guidance settings</line>
      </doc>
      <arg name="promptMode" type="q" direction="in">
        <doc>
          <line>mode = enum(INVALID,DISABLED_PROMPT,AUTOMATIC_PROMPT,MANUAL_PROMPT, ... )</line>
          <line>MANUAL_PROMPT means that a client application can ask the NavigationCore to play the voice prompts</line>
          <line>AUTOMATIC_PROMPT means that the voice prompts will be requested by NavigationCore automatically</line>
          <line>DISABLED_PROMPT means that the client application will the voice generator component directly to play the messages (bypassing the NavigationCore)</line>
        </doc>
      </arg>
    </method>
    <method name="GetVoiceGuidanceSettings">
      <doc>
        <line>GetVoiceGuidanceSettings = This method returns the used voice guidance settings</line>
      </doc>
      <arg name="promptMode" type="q" direction="out">
        <doc>
          <line>mode = enum(INVALID,DISABLED_PROMPT,AUTOMATIC_PROMPT,MANUAL_PROMPT, ... )</line>
          <line>MANUAL_PROMPT means that a client application can ask the NavigationCore to play the voice prompts</line>
          <line>AUTOMATIC_PROMPT means that the voice prompts will be requested by NavigationCore automatically</line>
          <line>DISABLED_PROMPT means that the client application will the voice generator component directly to play the messages (bypassing the NavigationCore)</line>
        </doc>
      </arg>
    </method>
    <signal name="PositionToRouteChanged">
      <doc>
        <line>PositionToRouteChanged = This signal is emitted when the vehicle is off-the-road network and either the heading or the distance (or both) to the closest point on the active route changes</line>
      </doc>
      <arg name="distance" type="u">
        <doc>
          <line>distance = distance in meters to the closest point on the active route</line>
        </doc>
      </arg>
      <arg name="direction" type="i">
        <doc>
          <line>direction = direction in degrees relatively to the closest point on the active route. Range [0:360]</line>
        </doc>
      </arg>
    </signal>
    <signal name="ActiveRouteChanged">
      <doc>
        <line>ActiveRouteChanged = This signal is emitted when the active route changes</line>
      </doc>
      <arg name="changeCause" type="q">
        <doc>
          <line>changeCause = enum(INVALID,TRAFFIC,OFF_ROUTE,MANUAL,...)</line>
        </doc>
      </arg>
    </signal>
  </interface>
</node>