Hello, I’m trying to implement long range routing according to https://developer.tomtom.com/maps-sdk-android/long-ev-distance-routing and the problem is that it is not displayed on the map. Here’s my code bellow.
HashMap<Double,Double> consumption = new HashMap<>();
consumption.put(18.1,100.0);
ElectricVehicleDescriptor evDescriptor = new ElectricVehicleDescriptor.Builder(
new ElectricVehicleConsumption(
80.0,
40.0,
1.7,
consumption
)
).build();
LatLng vilnius = new LatLng(54.687157,25.279652);
LatLng kaunas = new LatLng(55.782822,21.492790);
ChargingDescriptor chargingDescriptor = new ChargingDescriptor(
10,
10,
Collections.singletonList(
new ChargingMode(
Collections.singletonList(
new ChargingConnection(
FacilityType.CHARGE_380_TO_480V_3_PHASE_AT_32A,
PlugType.IEC_62196_TYPE_2_OUTLET
)
),
Arrays.asList(
new ChargingCurveSupportPoint(6.0, 360),
new ChargingCurveSupportPoint(80.0, 6680)
)
)
)
);
EvRouteSpecification evRouteSpecification = new EvRouteSpecification.Builder(
vilnius,
kaunas,
evDescriptor,
chargingDescriptor
).build();