What's neat here is how clean their elevation data seems to be. Having spent a long time trying to work with various dataset like the NASA SRTM and USGS files, I quickly came to realize how hard it is to clean up this data. Looking at this feature I tried out a couple of things that would have tripped up a naive implementation and Google Maps seems to have dodged the most obvious pitfalls. For example a bike route that crosses a freeway in a trench correctly shows the route without discontinuities. It also seems like Google are getting around some of the problems just by being intentionally vague and blurry. If you make a route short enough it will just say "mostly flat" instead of trying to draw a misleadingly detailed profile.