RSS

Google Map Optimized Route Drawing

22 Aug

Optimized Google Route Example

please go through above link for full tutorial and below is link to get JSON data for your location

REQUEST URL: http://open.mapquestapi.com/directions/v1/optimizedroute

 

REQUEST BODY: {locations:[{latLng:{lat:51.524410144966154,lng:-0.12989273652335526}},{latLng:{lat:51.54495915136182,lng:-0.16518885449221493}},{latLng:{lat:51.52061842826141,lng:-0.1495479641837033}},{latLng:{lat:51.52850609658769,lng:-0.20170525707760403}}]}

 

U have to merge this URL like below link :

 

http://open.mapquestapi.com/directions/v1/optimizedroute?json=locations:%5BlatLng:lat:51.524410144966154,lng:-0.12989273652335526,latLng:lat:51.54495915136182,lng:-0.16518885449221493,latLng:lat:51.52061842826141,lng:-0.1495479641837033,latLng:lat:51.52850609658769,lng:-0.20170525707760403%5D

 

u will get JSON response  with full detailed optimized path

Advertisements
 
Leave a comment

Posted by on August 22, 2012 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: