I am trying to get the gradient information of the calculated route from here maps. According to the documentation I need to add:
returnElevation = True