Closed yuvaraj119 closed 1 year ago
Hi @yuvaraj119, the voice assets are only distributed for the Navigate Edition. You can ignore this log message, it is not relevant for the Explore Edition. Thanks.
I'm using Explorer version and this error is crashing the application.
Are you doing any special steps to get the crash? Ie. can you reproduce this with the Routing example app?
With Routing example I am not able to reproduce but I'm using the same class in my code without any change to calculate Routing. One difference is I'm doing on Jepack compose.
Just to be sure: The voice_assets
log is not causing a crash. Can you paste the full log? Also, maybe you can have a look where exactly in your code the crash is happening. Try to clean the code when receiving the route result. Most likely, there is a crash in your code on app side happening when receiving the route result. This is unlikely to be related to JetPack.
Closing since there was no update since two weeks. Please leave a comment when you have an update. Thanks!
Well the real error is this
[ERROR] routing - Routing error: 2, exception: Ascent consumption must be > 0.
Here I added 2 geo waypoints in list
I'm adding two geocoordinates to waypoints and then i call routingEngine.calculateRoute with waypoints, caroption and CalculateRouteCallback.
Hi @yuvaraj119,
this error relates to the EV consumption model for ascents. Try to set only CarOptions
. When you calculate routes for electric vehicles (EV), this is the minimum you have to set (copied from our dev guide):
EVCarOptions evCarOptions = new EVCarOptions();
// The below three options are the minimum you must specify or routing will result in an error.
evCarOptions.consumptionModel.ascentConsumptionInWattHoursPerMeter = 9;
evCarOptions.consumptionModel.descentRecoveryInWattHoursPerMeter = 4.3;
evCarOptions.consumptionModel.freeFlowSpeedTable = new HashMap<Integer, Double>() {{
put(0, 0.239);
put(27, 0.239);
put(60, 0.196);
put(90, 0.238);
}};
Note that ascentConsumptionInWattHoursPerMeter
must be greater than 0.
Hi @yuvaraj119,
this error relates to the EV consumption model for ascents. Try to set only
CarOptions
. When you calculate routes for electric vehicles (EV), this is the minimum you have to set (copied from our dev guide):EVCarOptions evCarOptions = new EVCarOptions(); // The below three options are the minimum you must specify or routing will result in an error. evCarOptions.consumptionModel.ascentConsumptionInWattHoursPerMeter = 9; evCarOptions.consumptionModel.descentRecoveryInWattHoursPerMeter = 4.3; evCarOptions.consumptionModel.freeFlowSpeedTable = new HashMap<Integer, Double>() {{ put(0, 0.239); put(27, 0.239); put(60, 0.196); put(90, 0.238); }};
Note that
ascentConsumptionInWattHoursPerMeter
must be greater than 0.
Is there a document which describes these three and what it is about?
Yes, the consumption model is described here: https://developer.here.com/documentation/android-sdk-explore/4.14.2.0/dev_guide/topics/routing.html#get-routes-for-electric-vehicles.
Yes, the consumption model is described here: https://developer.here.com/documentation/android-sdk-explore/4.14.2.0/dev_guide/topics/routing.html#get-routes-for-electric-vehicles.
Thanks!
In Heremaps explorer(4.13.4.0.11034 version) when i call RoutingEngine.calculateRoute getting below error.
AndroidAssetsLoader E Failed to load asset stream voice_assets/voice_package_en-US/content/init.lua java.io.FileNotFoundException: voice_assets/voice_package_en-US/content/init.lua at android.content.res.AssetManager.nativeOpenAsset(Native Method) at android.content.res.AssetManager.open(AssetManager.java:796) at android.content.res.AssetManager.open(AssetManager.java:773) at com.here.sdk.core.engine.AndroidAssetsLoader.loadAssetStream(Unknown Source:13) at com.here.sdk.core.engine.AndroidAssetsLoader.loadAsset(Unknown Source:5) at com.here.sdk.routing.RoutingEngine.calculateRoute(Native Method)