moving distance calculation out of calcInstruction into createGPX as we can only guess the precise distances and times (of one edge) if elevation data is used (and so edge.distance is not air-line distance)