Do you enjoy walking or biking to your destination? If so, the Elevation Web Service is a particularly wonderful tool that allows the user to visualize the terrain ahead.
Best used in conjunction with our Directions Service, the options are endless. You’ll be able to create elevation charts and profiles using optimal routes for drivers, pedestrians and cyclists, draggable routes for those who request highly customizable routes, and others using MapQuest’s advanced routing combinations.
Here’s an example using a route from Gunnison, UT to Moab, UT.
In order to generate this from the Directions Service, we request the following (refer back to the Advanced Routing documentation if you need additional assistance):
Doing so will provide the necessary collection of lat/long pairs to be used for building the elevation URL request. So with the lat/long pairs in hand, the elevation chart and profile are able to be generated using the appropriate elevation URL parameters.
Seen below is the request and result from our Elevation Service:
A similar example is also available on our Elevation Service Developer’s Guide. Feel free to head over there and give this a test drive. Or if you already have your own data and don’t wish to use our Directions Service, that’s ok too. They work just as well and our feelings won’t be hurt!
Listed below are a few more key points for this service:
- Customizable elevation chart size
- Distance values returned in miles or kilometers
- Shape format represented as float pairs or compressed path string with 5 and 6 digits of precision
As you might have already expected, we’ll be adding more features with each update so stay tuned!