[Editor’s note: A free, sans-API key solution from the web mapping giant for showing elevation (point or along custom path) for Google Maps Mashups either in the v3 API directly or separately as a stand-alone web service. And it returns JSON Thanks @lagerratrobe!]
Republished from Google.
The Google Elevation web service provides you a simple interface to query locations on the earth for elevation data. Additionally, you may request sampled elevation data along paths, allowing you to calculate elevation changes along routes.
The Elevation service provides elevation data for all locations on the surface of the earth, including depth locations on the ocean floor (which return negative values). In those cases where Google does not possess exact elevation measurements at the precise location you request, the service will interpolate and return an averaged value using the four nearest locations.
With the Elevation service, you can develop hiking and biking applications, mobile positioning applications, or low resolution surveying applications.