What you are asking for a long drawn exercise and works on top of data collected on daily basis.
My company has a mobile based solution to handle just that. Let me know if you would be keen to look at it.
I am sharing a presentation on the solution here.
11th March 2014 From India, New Delhi