Enable binary patching
You can get a new map data by downloading the entire map. The old map data is replaced by downloading the latest map version, which HERE publishes on a regular basis.
To reduce the network traffic during the download, you can enable binary patches instead of downloading the complete map data.
Binary patching of map data allows to obtain new map data by applying a patch on top of old map data. A patch contains a binary difference between the online recent map data and the outdated local map data of an OCM bundle.
Enabling binary patching reduces the Internet traffic used for the map update.
The following table compares results of base update and binary patching (ROW catalog) on a laptop using Wi-Fi.
|Version number ||Base update ||Binary patching |
|Germany v62 > Germany v63 ||280 sec, 924.37 MB ||140 sec, 128.44 MB |
|Germany v59 > Germany v63 ||216 sec, 927.46 MB ||181 sec, 252.54 MB |
|Germany v55 > Germany v63 ||204 sec, 927.8 MB ||193 sec, 331.2 MB |
These statistics show how binary patching reduces Internet traffic (update time and size) needed for updating the map to a new version.
Note: A smaller difference between map versions needs less Internet traffic to update the map. For example, to update the map from v55 to v63 takes 193 sec and 331.2 MB. However, updating the map from v62 to v63 takes 140 sec and 128.44 MB.
To enable binary patching, specify the patch catalog HRN in
server_catalog_settings.patch_catalog_hrn = "hrn:here:data::olp-here:ocm-patches";
hrn:here:data::olp-here:ocm-patches value is provided as an example. Use a patch catalog correspondent to the particular data catalog, which you are using.
Note: Applying binary patches uses resources of your device (Internet traffic, CPU, and RAM). Use them at your discretion.
Use GetStatistics API
You can use the
GeStatistics API to obtain the patching statistics, which is collected during the program's lifetime.
You can call
GetStatistics using the
AbstractDataStoreServerAdvanced object (
For more information about
DataStoreServer, refer to Manage
GetStatistics API returns the following structure:
struct OCM_ACCESS_MANAGER_CPP_EXPORT Statistics