code: def getDrivingDistance(self, vehID, edgeID, pos, laneIndex=0):
          
          self._connection._beginMessage(tc.CMD_GET_VEHICLE_VARIABLE, tc.DISTANCE_REQUEST,
                                         vehID, 1 + 4 + 1 + 4 + len(edgeID) + 8 + 1 + 1)
          self._connection._string += struct.pack("!Bi", tc.TYPE_COMPOUND, 2)
          self._connection._packString(edgeID, tc.POSITION_ROADMAP)
          self._connection._string += struct.pack("!dBB",
                                                  pos, laneIndex, tc.REQUEST_DRIVINGDIST)
          return self._connection._checkResult(tc.CMD_GET_VEHICLE_VARIABLE, tc.DISTANCE_REQUEST, vehID).readDouble()
docs: getDrivingDistance(string, string, double, integer) -> double
  
          Return the distance to the given edge and position along the vehicles route.