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
|
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2014, PCA Peugeot Citro�n, XS Embedded GmbH, TomTom International B.V., Continental Automotive GmbH, BMW Car IT GmbH, Alpine Electronics R&D Europe GmbH, AISIN AW CO., LTD., Neusoft Technology Solutions GmbH, Jaguar Land Rover Limited, Visteon Corporation, Elektrobit Automotive GmbH
// 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/.
package org.genivi.navigation
typeCollection NavigationTypes {
<** @description: version.**>
struct Version {
<** @description : when the major changes, then backward compatibility with previous releases is not granted.**>
UInt16 ^versionMajor
<** @description : 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).**>
UInt16 ^versionMinor
<** @description : when the micro changes, then backward compatibility with previous releases is granted (bug fixes or documentation modifications).**>
UInt16 ^versionMicro
<** @description : release date (e.g. 21-06-2011).**>
String date
}
typedef Handle is UInt32
<** @description: Handle to a location.
Range[0:0x7fffffff]
**>
typedef LocationHandle is Handle
/* geometric types */
struct Coordinate2D {
<** @description: latitude of the current position (according WGS84). Range [-90:+90]. Example: 48.053250 .**>
Double latitude
<** @description: longitude of the current position (according WGS84). Range [-180:+180]. Example: 8.324500 .**>
Double longitude
}
struct Coordinate3D extends Coordinate2D {
<** @description: altitude above the sea level of the current position in meters .**>
Double altitude
}
struct Rectangle {
Coordinate2D topLeft
Coordinate2D bottomRight
}
array Polygon of Coordinate2D
<** @description: A distance in meters.
A distance can be at most half of the earth perimeter (a little less than 20050 km).
(see http://www.wolframalpha.com/input/?i=Earth+perimeter)
Range[0:20050000]
notSpecifiedValue = -1
**>
typedef DistanceInMeters is Int32
<** @description: A circle given as center and radius. **>
struct Circle {
<** @description : The center of the circle.**>
Coordinate2D center
<** @description : The radius of the circle.**>
DistanceInMeters radius
}
typedef Timestamp is UInt64
/* enumerations */
// for the time being, no use of inheritance (extends) for the enumerations, to be implemented later
enumeration BasicEnum {
INVALID = 0
}
enumeration Units {
METER = 50
MILE = 51
KM = 52
YARD = 53
FOOT = 54
}
enumeration TimeFormat {
INVALID = 0
TWELVEH = 1
TWENTYFOURH = 2
}
struct Locale
{
<** @description : the language used. ISO 639‐3 language code (lower case)**>
String languageCode
<** @description : the country specific variant for the language used. ISO 3166‐1 alpha 3 country code (upper case)**>
String countryCode
<** @description : the script specific variant for the language used. ISO 15924 alpha 4 script code (upper case)**>
String scriptCode
}
}
|