Hello,

Do you know how I can get (using your api) directions for a route from A to D via B en C ? I know it is possible using the google maps api, but I can't figure out how to implement it using your module ?

An example:

I have a content type which references to three or more locations, at the bottom of the node (after saving it) I want to visualize the route from the first location to the last one via the locations in between.

Hopefully you can help me

Rudy van der Blom

Comments

hutch’s picture

Get Directions does not support this feature at the moment, although with a bit of help in defining the data that needs to be sent to google it might be possible to add a function to the API.

At the moment we have a callback that works like this:
getdirections/locations/1/2
This shows a route
from location 1
to location 2

It might be possible to have a new callback that works like this:
getdirections/locationsvia/1,2,3,4,5
where the first number is the start and the last the endpoint and the rest vias

any input welcome!

hutch’s picture

added support for loadFromWaypoints to CVS, this will appear in the D-6--1 development version sometime after midnight GMT
Details on how to use it in README.txt

Please test and report back here!

hutch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

chitraar’s picture

Can u plz elaborate on the idea about callback

hutch’s picture

Use the 2.x version and read the readme, it's all in there.