Soak rice in warm water for 30 minutes, drain the water and keep it aside
Add oil to the pan. When the oil is hot, add whole spices and cook for 30 seconds. Add the onion and ginger garlic paste and sauté till the raw smell goes off
Add the chopped tomatoes and cook till the tomatoes get mushy. Add all the spice powders, salt and sugar; saute for 2 minutes
Add peas and rice and saute for a minute. In a rice cooker add the rice - tomato mixture, coconut milk and water. After the rice is cooked sprinkle chopped spring onions on top and Serve it with raita/gravy