Return the route detail after user selection from MapQuest routing Plugins for Leaflet

2 posts / 0 new
Last post
nootific
Return the route detail after user selection from MapQuest routing Plugins for Leaflet

What I want to achieve:

1. Display the routing options from point A to point A to the user using leaflet.

2. user select the route.

3. send the selected route turn-by-turn detail back to server as JSON.

 

How can I do it?  there is not a lot of documentation about how to handle user interaction in the leaflet plugin documentation.  I can see the documentation for event SELECTED in MQ.Routing.Ribbon class but it didn't describe now the ribbon is linked to a particular route.

 

Thanks.


MQBrianCoakley
The route ribbon is not
The route ribbon is not intended to be used to select the route. It is intended to be used for drag routing. Route selection can be done outside the base map like it is done on MapQuest.com. Once the route is selected then the details are available from the original alternate routes request. No secondary route should need to be resubmitted back to the server.