It would be awesome if geocoder supported the google directions API to turn an array of addresses (or a string with a "to" separator) into a geoPHP LineString representing the route.
RESTful API is here: https://developers.google.com/maps/documentation/directions/
Comments
Comment #1
basvredelingIsn't this functionality more suitable for another module? It's a completely different API after all. My best guess is that you need the getdirections module or something similar.
If you must go the custom route consider this:
map directions differ from geocoding not only because they require different result type parsing, but also because you can give a lot of extra input parameters (mode of transport, at least 2 points: start & finish). Essential features of any custom map directions module would be something like this:
For now, this is a won't fix afaic.