MapQuest Opens Its Directions Data

You can now bring the power of MapQuest routing to your application, whether it runs on a server or in the browser. The granddaddy of mapping announced a Beta release of a brand new Web Service for driving directions.

How it works: Through a simple REST-based interface, you pass a from address and a to address. MapQuest will return either XML or JSON with a Callback. That means you can Parse XML using a server-side language, or plop it right in your JavaScript and inject the content with the DOM.

MapQuest directions XML

This means you could, theoretically, have MapQuest directions on top of a Google Map. Nothing in the terms seems to suggest otherwise.

Of course, Google has a directions API of its own, but it only provides results within JavaScript as its own set of objects. By using standard data formats, MapQuest has unshackled driving directions. No longer are they restricted to the browser, which makes it easier for coders to cache or store results.

To use the new feature, you'll need to have a free developer key, which you'll pass with every API call. Once you've signed up the Beta docs provide a working example directions link.

Be sure to read the next Mapping article: 4 Hip Transit Authorities With APIs