How to setup hereHDLMConfiguration?

2 views (last 30 days)
Jozef Bucha
Jozef Bucha on 19 Jun 2023
Commented: Tushar on 20 Jun 2023
Hello everyone,
Can someone help me how to setup HERE HDLM.
I can login without problem using Matlab command:
hereHDLMCredentials setup
Problem is with command:
config = hereHDLMConfiguration('hrn:here:data::olp-here-had:here-hdlm-protobuf-na-2')
I am getting bunch of errors:
Error using driving.internal.heremaps.DataServiceStrategy/setCatalog
Unable to locate catalog 'hrn:here:data::olp-here-had:here-hdlm-protobuf-na-2'.
Error in driving.internal.heremaps.DataServiceManager/getPartitionClient
Error in hereHDLMConfiguration (line 101)
this.PartitionClient = m.getPartitionClient(catalog, catalogVersion);
Caused by:
Error using driving.internal.heremaps.CredentialsManager/webread
The server returned the status 403 with message "Forbidden" in response to the request to URL
https://api-lookup.data.api.platform.here.com/lookup/v1/resources/hrn:here:data::olp-here-had:here-hdlm-protobuf-na-2/apis
My HERE account and credentials should be ok. I was trying using Postman, according tutorial on HERE, and in Postman it is working:
But i am not able to use in Matlab.
Thanks for response
Jozef

Answers (1)

Tushar
Tushar on 19 Jun 2023
Hello Jozef,
We can try a few things to resolve the error,
  1. Since the error says "Unable to locate catalog 'hrn:here:data::olp-here-had:here-hdlm-protobuf-na-2' " ,we can try passing any other catalog and check if it is working for it.
  2. Since the error status code is 403 Forbidden, we can check our credentials once again. We can do so by running command 'hereCredentials' in MATLAB and check that the credentials are setup correctly.
  3. As you mentioned you are able to do it from Postman and not from MATLAB, it is worthwhile to check that the HERE SDK is installed correctly in MATLAB. Run the 'hereSDKSetup' command in MATLAB.
  2 Comments
Jozef Bucha
Jozef Bucha on 20 Jun 2023
Hello Tushar,
thanks for reply.
1. About Catalog:
I have tried Catalog also with Driving Scenario Designer
data = load('geoSequence.mat');
lat = data.latitude;
lon = data.longitude;
drivingScenarioDesigner
But after downloading and some time, it will ends with error
2. About check our credentials once again:
I was trying commands
hereCredentials
Unrecognized function or variable 'hereCredentials'
hereHDLMCredentials
Not enough input arguments.
Error in hereHDLMCredentials (line 35)
operation = validatestring(operation, {'setup', 'delete'}, ...
3. To check that the HERE SDK is installed correctly in MATLAB
Using command hereSDKSetup
hereSDKSetup
Unrecognized function or variable 'hereSDKSetup'.
Just to be sure in HERE Platform webpage i am having 3 options:
  1. Maps APi for Java Script
  2. Rest APIs
  3. HERE SDK
To obtain Access Key ID, Access Key Secret for Here HD Live Map, i was using the first option (Maps APi for Java Script). credentials.properties file is stored in C:\Users\jozef\.here directory.
Jozef
Tushar
Tushar on 20 Jun 2023
"Unrecognized function or variable 'hereSDKSetup' " suggests that you do not have HERE SDK installed in MATLAB . You can download the same from HERE developer portal.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!