The Google Maps Directions to GPX tool now has support for elevation data for each route/track point.
The tool relies on the Google Elevation API for elevation information.
This data is obtained by sampling along the given path, which in this case will be the start and end point of your directions.
Due to restrictions in the Google Elevation API, rather than return elevation data at each route point along the path, I had to implement the tool to request elevation by sampling along the length of the path. The number of samples requested is equal to the number of route points. Due to the fact that the path is sampled along the surface of the earth the accuracy of this elevation data might have a high degree of in-accuracy.
Are you interested in the development of this tool?
Here are the previous posts:
Developer & Programmer with +15 years professional experience building software.
Seeking WFH, remoting or freelance opportunities.