You said you were sitting in traffic when this happened? If so then that could just be normal. You need air flow through the radiator to keep the engine cool. When that happens, just put your heater on full blast to keep the temp from rising any higher. It'll make it crappy for you, but at least your car won't start to overheat.
~Peace