1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page dwx_maptool_here_to_dw_maps HERE Maps to DriveWorks Maps Converter Tool
6 @section dwx_map_here_description Description
8 The NVIDIA<sup>®</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.
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.
17 @note SW Release Applicability: This tool is available in <b>NVIDIA DRIVE Software</b> releases.
19 @section dwx_map_here_prerequisites Prerequisites
21 This tool is available on the x86 Host System.
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.
28 Ensure you have obtained the proper credentials to obtain proper credentials to access HERE HD Maps data.
30 @section dwx_map_here_usage Running the Tool
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.
35 Run the tool by executing:
37 ./maptool_here_to_dw_maps --app_code=[app_code]
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]
51 [--here_cache_dir=[path to cache directory]]
55 @subsection dwx_map_here_usage_params Parameters
57 --app_code=[HERE Maps app code]
58 Description: The app code in order to access the HERE HD Maps service.
60 --app_id=[HERE Maps app ID]
61 Description: The app ID in order to access the HERE HD Maps service.
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
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
72 --dw_gps_file=[path to input file]
73 Description: The input DriveWorks GPS file.
75 --route_kml_file=[path to input file]
76 Description: The input KML file extracted from Google Maps after specifying a route.
78 --radius=[radius in meters for the radius query]
79 Description: Radius in meters for the radius query.
81 --minLon=[minimum longitude in degrees]
82 Description: The minimum longitude of a map for a rectangular query.
83 Default value: -37.270751
85 --maxLon=[maximum longitude in degrees]
86 Description: The maximum longitude of a map for a rectangular query.
87 Default value: 37.470751
89 --minLat=[minimum latitude in degrees]
90 Description: The minimum latitude of a map for a rectangular query.
91 Default value: -122.067341
93 --maxLat=[maximum latitude in degrees]
94 Description: The maximum latitude of a map for a rectangular query.
95 Default value: -121.867341
97 --lon=[longitude in degrees]
98 Description: The longitudinal center of the map in degrees for a radius query.
100 Default value: 121.967341
102 --lat=[latitude in degrees]
103 Description: The latitudinal center of the map in degrees for a radius query.
105 Default value: 37.370751
108 Description: If this parameter is provided, the tool downloads data from the server.
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.
115 --here_cache_dir=[path to cache directory]
116 Description: The cache directory for the HERE Map data.
117 This parameter is optional.
120 Description: If this parameter is provided, the tool does not convert the outermost invisible lanes to road edges.
121 This parameter is optional.
124 Description: If this parameter is provided, the tool colors the boundaries.
125 Otherwise, the boundaries are colored white.
126 This parameter is optional.
128 @section dwx_map_here_examples Examples
130 @subsection dwx_map_here_examples_gps For Routes Defined by a DriveWorks GPS File
132 ./maptool_here_to_dw_maps --app_code=[app_code]
135 --dw_gps_file=dwGPSfile.bin
136 --output_file=dwMapCache.bin
139 --here_cache_dir=[path to cache directory]
143 @subsection dwx_map_here_examples_kml For Routes Defined by a KML File
145 ./maptool_here_to_dw_maps --app_code=[app_code]
148 --route_kml_file=route.kml
149 --output_file=dwMapCache.bin
152 --here_cache_dir=[path to cache directory]
156 For information on creating maps in KML format, see how @ref dwx_map_here_creating.
158 @subsection dwx_map_here_examples_rect For Regions Defined by a Rectangle
160 ./maptool_here_to_dw_maps --app_code=[app_code]
167 --output_file=dwMapCache.bin
170 --here_cache_dir=[path to cache directory]
174 @subsection dwx_map_here_examples_radius For Regions Defined by a Center and Radius
176 ./maptool_here_to_dw_maps --app_code=[app_code]
182 --output_file=dwMapCache.bin
185 --here_cache_dir=[path to cache directory]
189 @section dwx_map_here_additional Additional Information
191 @subsection dwx_map_here_creating To Create a Route Map in KML Format
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`.