summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 4b97102b27d67e2767008bb5be56f7448f8779e9 (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
# tbtnavi
Navigation application with turn by turn (TBT) navigation support for cluster demo remote display.
## Reference
The application is based on the QtLocation widget, documentation is available at:
https://doc-snapshots.qt.io/qt5-5.9/qtlocation-index.html
and example code used as a starting point at:
https://doc-snapshots.qt.io/qt5-5.9/qtlocation-mapviewer-example.html

## Build
```
source ${SDK_PATH}/environment-setup-aarch64-agl-linux
mkdir build
cd build
qmake ../
make
```
## Configuration

This is the same as the configuration file for the ondemandnavi navigation application.  The same file will be used by both applications if present.

Please set mapAccessToken, mapStyleUrl, speed, interval, latitude and longitude in JSON format in `/etc/naviconfig.ini`.

- mapAccessToken sets Access token provided by Mapbox.
- speed sets vehicle speed in km/h.
- interval sets the screen update interval in milliseconds.
- latitude, longitude sets the current position at application start.
- mapStyleUrls sets Mapbox style URLs.

### Example /etc/naviconfig.ini
```
example
{
	"mapAccessToken":"pk.***********",
	"speed":60,
	"interval":100,
	"latitude":36.1363,
	"longitude":-115.151,
	"mapStyleUrls":"mapbox://styles/mapbox/dark-v9"
}
```
## Licensing
All files are Apache 2.0 licensed, except for those under include/mapbox.
### From https://github.com/mapbox/cheap-ruler-cpp
- include/mapbox/cheap_ruler.hpp

ISC license (see LICENSE.mapbox-cheap-ruler-cpp)

### From https://github.com/mapbox/geometry.hpp
- feature.hpp
- geometry.hpp
- geometry_io.hpp
- geometry/box.hpp
- geometry/empty.hpp
- geometry/envelope.hpp
- geometry/for_each_point.hpp
- geometry/geometry.hpp
- geometry/line_string.hpp
- geometry/multi_line_string.hpp
- geometry/multi_point.hpp
- geometry/multi_polygon.hpp
- geometry/point_arithmetic.hpp
- geometry/point.hpp
- geometry/polygon.hpp

ISC license (see LICENSE.mapbox-geometry.hpp)

### From https://github.com/mapbox/variant
- optional.hpp
- variant_cast.hpp
- variant.hpp
- variant_io.hpp
- variant_visitor.hpp

BSD 3 Clause license (see LICENSE.mapbox-variant)

- recursive_wrapper.hpp

Boost 1.0 license per header comment (see LICENSE_1.0.txt)