We have tried to solve the problem of not getting ambulance on time. In India, we never get the ambulance on time due to several reasons. We wanted to solve this problem using technology. Hence we created a geolocation based mobile app, which call the nearest available ambulance, just on click of a button. The logic of our app is simple. When a user registers as a ambulance driver, we store the location of the driver on firebase. If a user registers as patient, he can see all the nearby ambulances. When the user clicks on REQUEST button, we calculate the distance of all the ambulance in our databse with the user's location and send the request to the nearset ambulance, if they accept the request within 1 mintue, the ambulance is confirmed, otherwise the request is sent to the next nearest ambulance.
We wanted to use the ready made Distance Matrix API of Google maps but could not , because it was paid. so we created our own distance calculation algorithm
Technologies used