The Google Maps Elevation API provides a simple interface to query locations on the earth for elevation data. Additionally, it may request sampled elevation data along paths, allowing you to calculate elevation changes along routes.