The android app service detects the potholes using accelerometer and sends it to the server and is fetched back and shown to all users on a map view
The remote server database contains all the co-ordinates of the potholes detected by all users.. In a long run all the data collected in the background is the one which is fetched analysed and presented to the users in the foreground of the app using google maps api.