Borrar filtros
Borrar filtros

How to setup hereHDLMConfiguration?

6 visualizaciones (últimos 30 días)
Jozef Bucha
Jozef Bucha el 19 de Jun. de 2023
Comentada: Tushar el 20 de Jun. de 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

Respuestas (1)

Tushar
Tushar el 19 de Jun. de 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 comentarios
Jozef Bucha
Jozef Bucha el 20 de Jun. de 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 el 20 de Jun. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by