This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

hereHDLMConfiguration

Configure HERE HD Live Map reader

Description

A hereHDLMConfiguration object configures a hereHDLMReader object to search for map data in only a specific HERE HD Live Map[1] (HDLM) production catalog or catalog version. These catalogs correspond to various geographic regions, such as India, Western Europe, and North America. Use this configuration object to speed up the performance of the reader, so that it does not search unnecessary catalogs. The configuration object is stored in the Configuration property of a hereHDLMReader object. For more details on creating configuration objects, see Create Configuration for HERE HD Live Map Reader.

Note

Use of the hereHDLMConfiguration object requires valid HERE HDLM credentials. If you have not previously set up credentials, a dialog box prompts you to enter them. Enter the App ID and App Code that you obtained from HERE Technologies, and click OK.

Creation

Syntax

config = hereHDLMConfiguration(catalog)
config = hereHDLMConfiguration(region)
config = hereHDLMConfiguration(___,catalogVersion)

Description

example

config = hereHDLMConfiguration(catalog) creates a hereHDLMConfiguration object for the latest version of the specified HERE HDLM catalog. A hereHDLMReader object with this configuration searches for the selected map tiles within only the catalog and version specified by that configuration.

example

config = hereHDLMConfiguration(region) creates a hereHDLMConfiguration object for the latest version of the catalog that corresponds to the specified region.

example

config = hereHDLMConfiguration(___,catalogVersion) creates a hereHDLMConfiguration object for the specified version of the catalog. Along with the catalog version, specify either the catalog name or the region name that corresponds to a catalog.

Input Arguments

expand all

Name of HERE HDLM production catalog, specified as a string scalar or character vector. This table shows the valid region names and their corresponding HERE HDLM production catalog names.

RegionCatalog
'Asia Pacific''here-hdmap-ext-apac-1'
'Eastern Europe''here-hdmap-ext-eeu-1'
'India''here-hdmap-ext-rn-1'
'Middle East And Africa''here-hdmap-ext-mea-1'
'North America''here-hdmap-ext-na-1'
'Oceania''here-hdmap-ext-au-1'
'South America''here-hdmap-ext-sam-1'
'Western Europe''here-hdmap-ext-weu-1'

Example: 'here-hdmap-ext-sam-1'

Name of geographic region that corresponds to a HERE HDLM production catalog, specified as a string scalar or character vector. This table shows the valid region names and their corresponding HERE HDLM production catalog names.

RegionCatalog
'Asia Pacific''here-hdmap-ext-apac-1'
'Eastern Europe''here-hdmap-ext-eeu-1'
'India''here-hdmap-ext-rn-1'
'Middle East And Africa''here-hdmap-ext-mea-1'
'North America''here-hdmap-ext-na-1'
'Oceania''here-hdmap-ext-au-1'
'South America''here-hdmap-ext-sam-1'
'Western Europe''here-hdmap-ext-weu-1'

Example: 'South America'

Version number of a HERE HDLM production catalog, specified as a positive integer. The HERE HDLM web service determines the availability of previous versions of the catalog. If you specify a version of a catalog that is not available, then hereHDLMConfiguration returns an error.

Properties

expand all

This property is read-only.

Name of HERE HDLM production catalog, specified as a string scalar or character vector.

  • If you specified the catalog input argument, then this property is set to the name of that catalog.

  • If you specified the region input argument, then this property is set to the catalog name that corresponds to that region.

This property is read-only.

Version number of a HERE HDLM production catalog, specified as a positive integer. The version number corresponds to the value specified in the catalogVersion input argument. If you do not specify catalogVersion, then this property is set to the latest version of the catalog specified in the Catalog property.

Examples

collapse all

Define a HERE tile ID for an area of Hyderabad, India.

tileID = uint32(375084810);

Create a HERE HD Live Map (HERE HDLM) configuration object for the India catalog. If you have not previously set up HERE HDLM credentials, a dialog box prompts you to enter them. Your catalog version might differ from the one shown here.

config = hereHDLMConfiguration('here-hdmap-ext-rn-1')
config = 
  hereHDLMConfiguration with properties:

           Catalog: 'here-hdmap-ext-rn-1'
    CatalogVersion: 12

Create a HERE HDLM reader using the specified HERE tile ID and configuration object. During creation, hereHDLMReader searches for the tile ID within only the India catalog. This reader is configured to read map data from only the India catalog.

reader = hereHDLMReader(tileID,'Configuration',config);

Load a sequence of latitude and longitude coordinates for a driving route in Boston, MA, USA.

data = load('geoRoute.mat')
data = struct with fields:
     latitude: [256×1 double]
    longitude: [256×1 double]

Create a HERE HD Live Map (HERE HDLM) configuration object for the region that the driving route is in (North America). If you have not previously set up HERE HDLM credentials, a dialog box prompts you to enter them. Your catalog version might differ from the one shown here.

config = hereHDLMConfiguration('North America')
config = 
  hereHDLMConfiguration with properties:

           Catalog: 'here-hdmap-ext-na-1'
    CatalogVersion: 2291

Create a HERE HDLM reader using the specified coordinates and configuration object. During creation, hereHDLMReader searches for map tiles containing these coordinates. It searches within only the catalog that is associated with the North America region. The created reader is configured to read map data from only the North America catalog.

reader = hereHDLMReader(data.latitude,data.longitude,'Configuration',config);

Create a HERE HD Live Map (HERE HDLM) configuration object for the previous version of a catalog.

Load a sequence of latitude and longitude coordinates for a driving route in Los Altos, California, USA.

data = load('geoSequence.mat')
data = struct with fields:
     latitude: [1000×1 double]
    longitude: [1000×1 double]

Create a HERE HDLM configuration object for the latest version of the North America catalog. If you have not previously set up HERE HDLM credentials, a dialog box prompts you to enter them. Your catalog version might differ from the one shown here.

catalog = 'here-hdmap-ext-na-1';
configLatest = hereHDLMConfiguration(catalog)
configLatest = 
  hereHDLMConfiguration with properties:

           Catalog: 'here-hdmap-ext-na-1'
    CatalogVersion: 2291

Create a configuration object for the previous version of the catalog.

previousVersion = configLatest.CatalogVersion - 1;
config = hereHDLMConfiguration(catalog,previousVersion)
config = 
  hereHDLMConfiguration with properties:

           Catalog: 'here-hdmap-ext-na-1'
    CatalogVersion: 2290

Create a HERE HDLM reader using the specified configuration object. The reader is configured to read data from only the previous version of the North America catalog.

reader = hereHDLMReader(data.latitude,data.longitude,'Configuration',config);

Tips

  • To save HERE HDLM credentials between MATLAB® sessions, select the corresponding option in the HERE HD Live Map Credentials dialog box. To manage HERE HDLM credentials, use the hereHDLMCredentials function.

Introduced in R2019a


[1] You need to enter into a separate agreement with HERE in order to gain access to the HDLM services and to get the required credentials (app_id and app_code) for using the HERE Service.