DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/tools/maps/maptool_here_to_dw_maps/README-maptool_here_to_dw_maps.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_maptool_here_to_dw_maps HERE Maps to DriveWorks Maps Converter Tool
4 @tableofcontents
5 
6 @section dwx_map_here_description Description
7 
8 The NVIDIA<sup>&reg;</sup> DriveWorks HERE Maps to DriveWorks Maps Converter tool downloads HERE Maps data<br>
9 from a server, and generates a DriveWorks Maps file. This file can be along a route defined <br> by a file type, or within a geometrical region.
10 
11 For specific examples, please refer to the following:
12 - @ref dwx_map_here_examples_gps.
13 - @ref dwx_map_here_examples_kml.
14 - @ref dwx_map_here_examples_rect.
15 - @ref dwx_map_here_examples_radius.
16 
17 @note SW Release Applicability: This tool is available in <b>NVIDIA DRIVE Software</b> releases.
18 
19 @section dwx_map_here_prerequisites Prerequisites
20 
21 This tool is available on the x86 Host System.
22 
23 This tool creates output files that are placed into the current working directory by default. Please ensure the following for your convenience:
24 - Write permissions are enabled for the current working directory.
25 - Include the tools folder in the binary search path of the system.
26 - Execute from your home directory.
27 
28 Ensure you have obtained the proper credentials to obtain proper credentials to access HERE HD Maps data.
29 
30 @section dwx_map_here_usage Running the Tool
31 
32 The HERE Maps to DriveWorks Maps Converter tool accepts the following parameters. Several of these parameters are required based on the route definition.<br>
33 For more information, please refer to the @ref dwx_map_here_examples.
34 
35 Run the tool by executing:
36 
37  ./maptool_here_to_dw_maps --app_code=[app_code]
38  --app_id=[app_id]
39  --catalog=[catalog]
40  --output_file=dwMapCache.bin
41  --dw_gps_file=dwGPSfile.bin
42  --route_kml_file=route.kml
43  --minLon=[minimum longitude in degrees]
44  --maxLon=[maximum longitude in degrees]
45  --minLat=[minimum latitude in degrees]
46  --maxLat=[maximum latitude in degrees]
47  --lon=[longitude in degrees]
48  --lat=[latitude in degrees]
49  --download
50  [--hd_only]
51  [--here_cache_dir=[path to cache directory]]
52  [--no_roadboundaries]
53  [--use_colors]
54 
55 @subsection dwx_map_here_usage_params Parameters
56 
57  --app_code=[HERE Maps app code]
58  Description: The app code in order to access the HERE HD Maps service.
59 
60  --app_id=[HERE Maps app ID]
61  Description: The app ID in order to access the HERE HD Maps service.
62 
63  --catalog=[catalog]
64  Description: Specifies the specific HERE maps catalog to download from. Note that most catalogs have a "na" (North America) or "weu" (Western Europe) tag specifying the region.
65  Examples: --catalog=here-cit-hdmap-ext-na-1, --catalog=here-cit-hdmap-ext-weu-1, --catalog=here-hdlm-nds-na-3, --catalog=here-hdlm-nds-weu-3
66  Default value: here-cit-hdmap-ext-na-1
67 
68  --output_file=[path to output file]
69  Description: The output DriveWorks Maps file name in '.xml' or '.bin' format.
70  Default value: dwMapCache.bin
71 
72  --dw_gps_file=[path to input file]
73  Description: The input DriveWorks GPS file.
74 
75  --route_kml_file=[path to input file]
76  Description: The input KML file extracted from Google Maps after specifying a route.
77 
78  --radius=[radius in meters for the radius query]
79  Description: Radius in meters for the radius query.
80 
81  --minLon=[minimum longitude in degrees]
82  Description: The minimum longitude of a map for a rectangular query.
83  Default value: -37.270751
84 
85  --maxLon=[maximum longitude in degrees]
86  Description: The maximum longitude of a map for a rectangular query.
87  Default value: 37.470751
88 
89  --minLat=[minimum latitude in degrees]
90  Description: The minimum latitude of a map for a rectangular query.
91  Default value: -122.067341
92 
93  --maxLat=[maximum latitude in degrees]
94  Description: The maximum latitude of a map for a rectangular query.
95  Default value: -121.867341
96 
97  --lon=[longitude in degrees]
98  Description: The longitudinal center of the map in degrees for a radius query.
99  Example: --lon=122.25
100  Default value: 121.967341
101 
102  --lat=[latitude in degrees]
103  Description: The latitudinal center of the map in degrees for a radius query.
104  Example: --lat=37.45
105  Default value: 37.370751
106 
107  --download
108  Description: If this parameter is provided, the tool downloads data from the server.
109 
110  --hd_only
111  Description: If this parameter is provided, the tool only downloads HD quality map data.
112  Otherwise, it downloads both HD and SD quality map data.
113  This parameter is optional.
114 
115  --here_cache_dir=[path to cache directory]
116  Description: The cache directory for the HERE Map data.
117  This parameter is optional.
118 
119  --no_roadboundaries
120  Description: If this parameter is provided, the tool does not convert the outermost invisible lanes to road edges.
121  This parameter is optional.
122 
123  --use_colors
124  Description: If this parameter is provided, the tool colors the boundaries.
125  Otherwise, the boundaries are colored white.
126  This parameter is optional.
127 
128 @section dwx_map_here_examples Examples
129 
130 @subsection dwx_map_here_examples_gps For Routes Defined by a DriveWorks GPS File
131 
132  ./maptool_here_to_dw_maps --app_code=[app_code]
133  --app_id=[app_id]
134  --catalog=[catalog]
135  --dw_gps_file=dwGPSfile.bin
136  --output_file=dwMapCache.bin
137  --download
138  --hd_only
139  --here_cache_dir=[path to cache directory]
140  --no_roadboundaries
141  --use_colors
142 
143 @subsection dwx_map_here_examples_kml For Routes Defined by a KML File
144 
145  ./maptool_here_to_dw_maps --app_code=[app_code]
146  --app_id=[app_id]
147  --catalog=[catalog]
148  --route_kml_file=route.kml
149  --output_file=dwMapCache.bin
150  --download
151  --hd_only
152  --here_cache_dir=[path to cache directory]
153  --no_roadboundaries
154  --use_colors
155 
156 For information on creating maps in KML format, see how @ref dwx_map_here_creating.
157 
158 @subsection dwx_map_here_examples_rect For Regions Defined by a Rectangle
159 
160  ./maptool_here_to_dw_maps --app_code=[app_code]
161  --app_id=[app_id]
162  --catalog=[catalog]
163  --minLon=-122.3
164  --maxLon=-122.2
165  --minLat=37.4
166  --maxLat=37.5
167  --output_file=dwMapCache.bin
168  --download
169  --hd_only
170  --here_cache_dir=[path to cache directory]
171  --no_roadboundaries
172  --use_colors
173 
174 @subsection dwx_map_here_examples_radius For Regions Defined by a Center and Radius
175 
176  ./maptool_here_to_dw_maps --app_code=[app_code]
177  --app_id=[app_id]
178  --catalog=[catalog]
179  --lon=-122.25
180  --lat=37.45
181  --radius=37.45
182  --output_file=dwMapCache.bin
183  --download
184  --hd_only
185  --here_cache_dir=[path to cache directory]
186  --no_roadboundaries
187  --use_colors
188 
189 @section dwx_map_here_additional Additional Information
190 
191 @subsection dwx_map_here_creating To Create a Route Map in KML Format
192 
193 1. Navigate to https://www.google.com/mymaps/ in your browser.
194 2. Click the red **CREATE A NEW MAP** button, or open an existing map.
195 3. Click the **Add directions** button under the Search bar. A layer below your map called **Untitled layer** appears.
196 5. Create your route on the new **Untitled layer** by specifying a starting point **A** and destination **B**.
197 6. Click the **⋮** menu button to the right of your map title, and select **Export to KML/KMZ**.
198 7. Select your route layer from the drop-down menu, and check **Export as KML instead of KMZ. Does not support all icons**. Click **Download**.
199 8. Verify that your route map in KML format appears under `data/tools/maps/route.kml`.