I want to integrate the mapquest in my website.I need to integrate the Get directions service from the mapquest.I got a map showing a route between two places.The points were given as static.Anyone can help me with sample codes or just with tutorials.Any help is appreciated.Thanks in advance.

Recommended Answers

All 2 Replies

You can find routing samples in the JavaScript SDK here http://developer.mapquest.com/web/documentation/sdk/javascript/v7.0/routing and samples using the Directions Web Service here http://www.mapquestapi.com/directions/. Basically what is happening is a request is made for the route and the json response is parsed for the shape points to put the route highlight on the map. You can also add your own functionality to the route response as the sample code shows.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.