std::string MSNet::getBusStopID(const MSLane* lane, const SUMOReal pos) const { const std::map<std::string, MSBusStop*> &vals = myBusStopDict.getMyMap(); for(std::map<std::string, MSBusStop*>::const_iterator it = vals.begin(); it != vals.end(); ++it){ MSBusStop* stop = it->second; if(&stop->getLane() == lane && fabs(stop->getEndLanePosition() - pos) < POSITION_EPS){ return stop->getID(); } } return ""; }