summaryrefslogtreecommitdiff
path: root/api/navigation-core/genivi-navigationcore-mapmatchedposition.xml
blob: a59104f7ff4481222b8726119f0ae2e5dfecb7e7 (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
<?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.MapMatchedPosition">
    <version>3.0.0 (21-01-2014)</version>
    <doc>
      <line>MapMatchedPosition = This interface offers functions to retrieve the map matched position and to simulate positioning</line>
	  <line></line>
	  <line>If NavigationCore is not in Simulation Mode (Simulation Status is SIMULATION_STATUS_NO_SIMULATION), it is using the EnhancedPosition from the Positioning component.</line>
	  <line>In Simulation Mode it is not using this position, instead it uses FixedPosition or FollowActiveRoute to determine the position.</line>
	  <line>With FixedPosition (Simulation Status is SIMULATION_STATUS_FIXED_POSITION), the position is fixed, unless it is changed by a call to setPosition().</line>
	  <line>This supports use cases like: setting the current car position in a demo mode, or replay a position log file (where setPosition() is called for each logged location).</line>
	  <line>In Follow Active Route mode, NavigationCore is generating positions itself.</line>
	  <line>These positions follow the current active route. When the end of the route is reached, the position jumps back to the starting point of the route.</line>
	  <line>There are two sub states: Running (Simulation Status is SIMULATION_STATUS_RUNNING) and Paused (Simulation Status is SIMULATION_STATUS_PAUSED).</line>
	  <line>By default the ‘driving speed’ will be equal to the free flow speed of each road segment. However a speed factor can be set via the method SetSimulationSpeed.</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="SetSimulationMode">
      <doc>
        <line>SetSimulationMode = This method activates or deactivates the simulation mode</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="activate" type="b" direction="in">
        <doc>
          <line>activate = flag. TRUE means that the simulation mode is activated.</line>
		  <line>The simulation status will be SIMULATION_STATUS_FIXED_POSITION, with the position being the last known position in the NavigationCore.</line>
		  <line>FALSE means that the simulation mode is de-activated. The simulation status will be SIMULATION_STATUS_NO_SIMULATION</line>
        </doc>
      </arg>
    </method>
    <method name="GetSimulationStatus">
      <doc>
        <line>GetSimulationStatus = This method retrieves the simulation status</line>
      </doc>
      <arg name="simulationStatus" type="i" direction="out">
        <doc>
          <line>simulationStatus = enum(SIMULATION_STATUS_NO_SIMULATION, SIMULATION_STATUS_RUNNING, SIMULATION_STATUS_PAUSED, SIMULATION_STATUS_FIXED_POSITION)</line>
          <line>SIMULATION_STATUS_NO_SIMULATION means that NavigationCore is using the EnhancedPosition</line>
          <line>SIMULATION_STATUS_RUNNING means that positions are generated along the active route</line>
          <line>SIMULATION_STATUS_PAUSED means that the generation of positions along the active route is paused</line>
          <line>SIMULATION_STATUS_FIXED_POSITION means that the position is fixed.</line>
        </doc>
      </arg>
    </method>
    <signal name="SimulationStatusChanged">
      <doc>
        <line>SimulationStatusChanged = This signal is emitted when the Simulation Status has changed</line>
      </doc>
      <arg name="simulationStatus" type="i">
        <doc>
          <line>simulationStatus = enum(SIMULATION_STATUS_NO_SIMULATION, SIMULATION_STATUS_RUNNING, SIMULATION_STATUS_PAUSED, SIMULATION_STATUS_FIXED_POSITION)</line>
          <line>SIMULATION_STATUS_NO_SIMULATION means that NavigationCore is using the EnhancedPosition</line>
          <line>SIMULATION_STATUS_RUNNING means that positions are generated along the active route</line>
          <line>SIMULATION_STATUS_PAUSED means that the generation of positions along the active route is paused</line>
          <line>SIMULATION_STATUS_FIXED_POSITION means that the position is fixed.</line>
        </doc>
      </arg>
    </signal>
    <method name="subscribeForsimulationStatusChangedSelective">
      <arg direction="out" name="status" type="b">
      </arg>
    </method>
    <method name="unsubscribeFromsimulationStatusChangedSelective">
    </method>  
    <method name="SetSimulationSpeed">
      <doc>
        <line>SetSimulationSpeed = This method sets the speed factor for the simulation mode</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="speedFactor" type="y" direction="in">
        <doc>
          <line>speedFactor = speed factor</line>
          <line>unit is x0.25. Normal speed x1 is 4</line>
        </doc>
      </arg>
    </method>
    <method name="GetSimulationSpeed">
      <doc>
        <line>GetSimulationSpeed = returns the speed factor for the simulation mode</line>
      </doc>
      <arg name="speedFactor" type="y" direction="out">
        <doc>
          <line>speedFactor = speed factor</line>
          <line>unit is x0.25. Normal speed x1 is 4</line>
        </doc>
      </arg>
    </method>
    <signal name="SimulationSpeedChanged">
      <doc>
        <line>SimulationSpeedChanged = This signal is emitted when the simulation speed factor has changed</line>
		<line>NavigationCore will only send out a SimulationSpeedChanged signal if there is at least one node listening to these changes</line>
      </doc>
      <arg name="speedFactor" type="y">
        <doc>
          <line>speedFactor = speed factor</line>
          <line>unit is x0.25. Normal speed x1 is 4</line>
        </doc>
      </arg>
    </signal>
    <method name="subscribeForsimulationSpeedChangedSelective">
      <arg direction="out" name="status" type="b">
      </arg>
    </method>
    <method name="unsubscribeFromsimulationSpeedChangedSelective">
    </method>  
    <method name="StartSimulation">
      <doc>
        <line>StartSimulation = This method starts, or resumes, a Follow Active Route simulation</line>
        <line>If the current Simulation Status is SIMULATION_STATUS_PAUSED, the simulation is resumed from the current location.</line>
		<line>Otherwise the simulation is started from the starting point of the route. In both cases the new status will be SIMULATION_STATUS_RUNNING</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="PauseSimulation">
      <doc>
        <line>PauseSimulation = This method freezes the current location</line>
		<line>The new status will be SIMULATION_STATUS_PAUSED</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="GetPosition">
      <doc>
        <line>GetPosition = This method returns the current position</line>
      </doc>
      <arg name="valuesToReturn" type="ai" direction="in">
        <doc>
          <line>valuesToReturn= array[key]</line>
          <line>key = enum(INVALID,TIMESTAMP,LATITUDE,LONGITUDE,ALTITUDE,HEADING,SPEED,CLIMB,GNSS_FIX_STATUS,DR_STATUS,MM_STATUS,SIMULATION_MODE, ... ,ALL)</line>
        </doc>
      </arg>
      <arg name="error" type="i" direction="out">
      </arg>
      <arg name="position" type="a{i(yv)}" direction="out">
        <doc>
          <line>position = dictionary[key,value]</line>
          <line>dictionary = array of tuples (key,value)</line>
          <line>key = enum(INVALID,TIMESTAMP,LATITUDE,LONGITUDE,ALTITUDE,HEADING,SPEED,CLIMB,GNSS_FIX_STATUS,DR_STATUS,MM_STATUS,SIMULATION_MODE, ... )</line>
          <line>key = TIMESTAMP, value = value of type 't', that represents a timestamp in ms</line>
          <line>key = LATITUDE, value = value of type 'd', that expresses the latitude of the current position 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 current position in format %3.6f. Range [-180,+180]. Example: 8.324500</line>
          <line>key = ALTITUDE, value = value of type 'i', that expresses the altitude above the sea level of the current position in meters</line>
          <line>key = HEADING, value = value of type 'u', that expresses the course angle in degree (0 = north, 90 = east, 180 = south, 270 = west, no negative values)</line>
          <line>key = SPEED, value = value of type 'd', that expresses speed measured in m/s. A negative value indicates that the vehicle is moving backwards</line>
          <line>key = CLIMB, value = value of type 'i', that expresses the inclination measured in degrees</line>
          <line>key = GNSS_FIX_STATUS, value = value of type 'q', that represents an enum(INVALID,NO_FIX,TIME_FIX,2D_FIX,3D_FIX, ... )</line>
          <line>key = DR_STATUS, value = value of type 'b', where TRUE means that a dead-reckoning algorithm has been used to calculate the current position</line>
          <line>key = MM_STATUS, value = value of type 'b', where TRUE means that a map-matching algorithm has been used to calculate the current position</line>
          <line>key = SIMULATION_MODE, value = value of type 'b', where TRUE means that the current position is simulated</line>
        </doc>
      </arg>
      <error name="org.genivi.navigationcore.MapMatchedPosition.Error.NoPosition">
        <doc>
          <line>This error is generated if no position is available</line>
        </doc>
      </error>
    </method>
    <method name="SetPosition">
      <doc>
        <line>SetPosition = This method sets the position to a specific location</line>
        <line>Independent of the current Simulation Status, the new status will be SIMULATION_STATUS_FIXED_POSITION.</line>
        <line>This method can be used to replay a position log file (with positions obtained via calls to GetPosition()) by calling this method for each position in the log file.</line>
        <line>It is of course also possible to call this method just once with e.g. a 'current location' entered by the user (via the HMI).</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="position" type="a{i(yv)}" direction="in">
        <doc>
          <line>position = dictionary[key,value]</line>
          <line>dictionary = array of tuples (key,value)</line>
          <line>key = enum(INVALID,TIMESTAMP,LATITUDE,LONGITUDE,ALTITUDE,HEADING,SPEED,CLIMB,GNSS_FIX_STATUS,DR_STATUS,MM_STATUS, ... )</line>
          <line>key = TIMESTAMP, value = value of type 't', that represents a timestamp in ms</line>
          <line>key = LATITUDE, value = value of type 'd', that expresses the latitude of the current position 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 current position in format %3.6f. Range [-180,+180]. Example: 8.324500</line>
          <line>key = ALTITUDE, value = value of type 'i', that expresses the altitude above the sea level of the current position in meters</line>
          <line>key = HEADING, value = value of type 'u', that expresses the course angle in degree (0 = north, 90 = east, 180 = south, 270 = west, no negative values)</line>
          <line>key = SPEED, value = value of type 'd', that expresses speed measured in m/s. A negative value indicates that the vehicle is moving backwards</line>
          <line>key = CLIMB, value = value of type 'i', that expresses the inclination measured in degrees</line>
          <line>key = GNSS_FIX_STATUS, value = value of type 'q', that represents an enum(INVALID,NO_FIX,TIME_FIX,2D_FIX,3D_FIX, ... )</line>
          <line>key = DR_STATUS, value = value of type 'b', where TRUE means that a dead-reckoning algorithm has been used to calculate the current position</line>
          <line>key = MM_STATUS, value = value of type 'b', where TRUE means that a map-matching algorithm has been used to calculate the current position</line>
          <line>Note that the key SIMULATION_MODE is not allowed here, as it will be true by definition.</line>
        </doc>
      </arg>
    </method>
    <signal name="PositionUpdate">
      <doc>
        <line>PositionUpdate = This signal is called to notify a client application of a position change. The update frequency is implementation specific. The maximal allowed frequency is 10Hz</line>
      </doc>
      <arg name="changedValues" type="ai">
        <doc>
          <line>changedValues = array[value]</line>
          <line>value = enum(INVALID,TIMESTAMP,LATITUDE,LONGITUDE,ALTITUDE,HEADING,SPEED,CLIMB,GNSS_FIX_STATUS,DR_STATUS,MM_STATUS,SIMULATION_MODE, ... )</line>
        </doc>
      </arg>
    </signal>
    <method name="GetCurrentAddress">
      <doc>
        <line>GetCurrentAddress = This method returns the current address</line>
      </doc>
      <arg name="valuesToReturn" type="ai" direction="in">
        <doc>
          <line>valuesToReturn= array[fieldType]</line>
          <line>key = enum(INVALID,TIMESTAMP,COUNTRY,COUNTRYCODE,CITY,STREET,ROAD_NUMBER,HOUSENUMBER,HOUSENAME,CROSSING,DISTRICT,TIMEZONE_OFFSET,DAYLIGHT_OFFSET,MATCH_TYPE, ... ,ALL)</line>
        </doc>
      </arg>
      <arg name="error" type="i" direction="out">
      </arg>
      <arg name="address" type="a{i(yv)}" direction="out">
        <doc>
          <line>address = dictionary[key,value]</line>
          <line>dictionary = array of tuples (key,value)</line>
          <line>key = enum(INVALID,TIMESTAMP,COUNTRY,COUNTRYCODE,CITY,STREET,ROAD_NUMBER,HOUSENUMBER,HOUSENAME,CROSSING,DISTRICT,TIMEZONE_OFFSET,DAYLIGHT_OFFSET,MATCH_TYPE, ... )</line>
          <line>key = TIMESTAMP, value = value of type 't', that represents a timestamp in ms</line>
          <line>key = COUNTRY, value = value of type 's', that identifies the country name</line>
          <line>key = COUNTRYCODE, value = value of type 's', ISO 3166‐1 alpha 3 country code (upper case)</line>
          <line>key = CITY, value = value of type 's', that identifies the city name</line>
          <line>key = STREET, value = value of type 's', that identifies the street name</line>
          <line>key = ROAD_NUMBER, value = value of type ´s´, that identifies the road number</line>
          <line>key = HOUSENUMBER, value = value of type 's', that identifies the house number</line>
          <line>key = HOUSENAME, value = value of type ´s´, that identifies the house name</line>
          <line>key = CROSSING, value = value of type 's', that identifies the crossing</line>
          <line>key = DISTRICT, value = value of type 's', that identifies the district name</line>
          <line>key = TIMEZONE_OFFSET, value = value of type 'n', that identifies the timezone offset at the current address</line>
          <line>key = DAYLIGHT_OFFSET, value = value of type 'n', that identifies the daylight offset at the current address</line>
          <line>key = MATCH_TYPE, value = value of type 'q', that identifies an enum(INVALID,ON_ROAD,OFF_ROAD,ON_FERRY,IN_TUNNEL,ON_CARPARK, ... )</line>
        </doc>
      </arg>
      <error name="org.genivi.navigationcore.MapMatchedPosition.Error.NoMap">
        <doc>
          <line>This error is generated if no map is available</line>
        </doc>
      </error>
      <error name="org.genivi.navigationcore.MapMatchedPosition.Error.OutOfKnownMap">
        <doc>
          <line>This error is generated if the vehicle is located in a position outside of the known map</line>
        </doc>
      </error>
    </method>
    <signal name="AddressUpdate">
      <doc>
        <line>AddressUpdate = This signal is called to notify a client application that the current address changed</line>
      </doc>
      <arg name="changedValues" type="ai">
        <doc>
          <line>changedValues = array[value]</line>
          <line>value = enum(INVALID,TIMESTAMP,COUNTRY,COUNTRYCODE,CITY,STREET,ROAD_NUMBER,HOUSENUMBER,HOUSENAME,CROSSING,DISTRICT,TIMEZONE_OFFSET,DAYLIGHT_OFFSET,MATCH_TYPE, ... )</line>
        </doc>
      </arg>
    </signal>
    <method name="GetPositionOnSegment">
      <doc>
        <line>positionOnSegment = This method returns the vehicle position on a route segment</line>
      </doc>
      <arg name="valuesToReturn" type="ai" direction="in">
        <doc>
          <line>valuesToReturn= array[fieldType]</line>
          <line>key = enum(INVALID,TIMESTAMP,SEGMENT_ID,DIRECTION_ON_SEGMENT,DISTANCE_ON_SEGMENT, ... ,ALL)</line>
        </doc>
      </arg>
      <arg name="positionOnSegment" type="a{i(yv)}" direction="out">
        <doc>
          <line>positionOnSegment = dictionary[key,value]</line>
          <line>dictionary = array of tuples (key,value)</line>
          <line>key = enum(INVALID,TIMESTAMP,SEGMENT_ID,DIRECTION_ON_SEGMENT,DISTANCE_ON_SEGMENT, ... )</line>
          <line>key = TIMESTAMP, value = value of type 't', that represents a timestamp in ms</line>
          <line>key = SEGMENT_ID, value = value = value of type 'ay', that represents a link-ID in a format whose interpretation is left to the navigationcore</line>
          <line>key = DIRECTION_ON_SEGMENT, value = value of type 'b', where TRUE means forward and FALSE means backward</line>
          <line>key = DISTANCE_ON_SEGMENT, value = value of type 'd', that indicates the distance in meter on the segment</line>
        </doc>
      </arg>
    </method>
    <signal name="PositionOnSegmentUpdate">
      <doc>
        <line>PositionOnSegmentUpdate = This signal is called to notify the client that the vehicle position on the route segment changed</line>
      </doc>
      <arg name="changedValues" type="ai">
        <doc>
          <line>changedValues = array[value]</line>
          <line>value = enum(INVALID,TIMESTAMP,SEGMENT_ID,DIRECTION_ON_SEGMENT,DISTANCE_ON_SEGMENT, ... )</line>
        </doc>
      </arg>
    </signal>
    <method name="GetStatus">
      <doc>
        <line>GetStatus = This method returns the current status</line>
      </doc>
      <arg name="valuesToReturn" type="ai" direction="in">
        <doc>
          <line>valuesToReturn = array[fieldType]</line>
          <line>key = enum(INVALID,TIMESTAMP,GNSS_FIX_STATUS,DR_STATUS,MM_STATUS,SIMULATION_MODE, ... ,ALL)</line>
        </doc>
      </arg>
      <arg name="status" type="a{i(yv)}" direction="out">
        <doc>
          <line>status = dictionary[key,value]</line>
          <line>dictionary = array of tuples (key,value)</line>
          <line>key = enum(INVALID,TIMESTAMP,GNSS_FIX_STATUS,DR_STATUS,MM_STATUS,SIMULATION_MODE, ... )</line>
          <line>key = TIMESTAMP, value = value of type 't', that represents a timestamp in ms</line>
          <line>key = GNSS_FIX_STATUS, value = value of type 'q', that represents an enum(INVALID,NO_FIX,TIME_FIX,2D_FIX,3D_FIX, ... )</line>
          <line>key = DR_STATUS, value = value of type 'b', where TRUE means that a dead-reckoning algorithm has been used to calculate the current position</line>
          <line>key = MM_STATUS, value = value of type 'b', where TRUE means that a map-matching algorithm has been used to calculate the current position</line>
          <line>key = SIMULATION_MODE, value = value of type 'b', where TRUE means that the current position is simulated</line>
        </doc>
      </arg>
    </method>
    <signal name="StatusUpdate">
      <doc>
        <line>StatusUpdate = This signal is emitted to notifiy a client application that the current status changed</line>
      </doc>
      <arg name="changedValues" type="ai">
        <doc>
          <line>changedValues = array[value]</line>
          <line>value = enum(INVALID,TIMESTAMP,GNSS_FIX_STATUS,DR_STATUS,MM_STATUS,SIMULATION_MODE, ... )</line>
        </doc>
      </arg>
    </signal>
    <signal name="OffRoadPositionChanged">
      <doc>
        <line>OffroadPositionChanged = This signal is emitted when the heading and the distance to the closest point on the road network changes</line>
      </doc>
      <arg name="distance" type="u">
        <doc>
          <line>distance = distance in meters to the closest point on the road network</line>
        </doc>
      </arg>
      <arg name="direction" type="i">
        <doc>
          <line>direction = direction in degrees relatively to the closest point on the road network. Range [0:360]</line>
        </doc>
      </arg>
    </signal>
  </interface>
</node>