Change Destinatin method : I created a method changeTarget in the TraCICommandInterface.cc file where I used the chageTarget Traci command to change the destination.I wanted to know whether tis is a correct implementation or not and also the nodeId mentioned in the method is the same as the nodeId of TraCICommandInterface.h.So can I use the nodeId or do I need to use the getexternalId() method to get the vehicle id.


           void TraCICommandInterface::Vehicle::changeTarget(std::string roadId)
        {
          uint8_t variableId = CMD_CHANGETARGET;
          uint8_t variableType = TYPE_COMPOUND;
          uint8_t edgeIdT = TYPE_STRING;
          std::string edgeId = roadId;
          TraCIBuffer buf = connection->query(CMD_SET_VEHICLE_VARIABLE, TraCIBuffer() << variableId << nodeId << variableType << edgeId<<edgeIdT);
          ASSERT(buf.eof());
       }