update MyRoadGraph::getDirections().

In some cases, node A and B are connected two different edges, and those
two edges have different polylines. For this situation, the direction of
the edge should be defined the first fragment of the polyline of the
edge, instead of the vector AB.