I tried with the below URL but didn't get elevation for the maneuver points in the legs segment. Is elevation API, and truck based routing, available in India?
Can I get truck based routing by selecting mode as - mode=fastest;truck
?
Truck based routing with elevation is available in India. You selection mode is correct to enable truck routing.
Elevation of a route can be enabled by setting parameter "returnElevation" to true.
If set to true, all shapes inside routing response will consist of 3 values instead of 2. Third value will be elevation. If there are no elevation data available for given shape point, elevation will be interpolated from surrounding points. In case there is no elevation data available for any of the shape points, elevation will be 0.0. If jsonattributes=32, elevation cannot be returned.
Sample truck routing with elevation between Mumbai and New Delhi with HERE Routing API V7.2 - your own app_id/app_code needed
For details regarding truck routing and elevation, please check the document page here
To get a feeling with different attributes and parameters available in the API, you can also try the reference client