Skip to content

belelaritra/W-ambulance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

W-ambulance

A Whatsapp Bot developed by Team : LTFT (Aritra,Rounak,Mayukh, Abesh) for Hackathon (Innovision-2021 by Department of CSE RCCIIT).

As in emergency it's quite hard to search for an ambulance ,hospital in google or to download new health related apps from PlayStore/Appstore. Also nowadays almost everyone have a Whatsapp account, so we thought to build a WhatsApp Bot which will arrange Ambulance in no time.

Demo Video (with 4 screen side by side)

WAmbulance.Demo.mp4

Flow Chart

Inspiration :

According to NIEM almost 20 % of patients die due to traffic delays, & in year 2016 only 1.4 lakh people died in road accident out of which almost 30% died due to late arrival of Ambulance.

So we team LTFT comes with this idea to build a WhatsApp Bot which will help a user to contact an Ambulance, Hospital & nearby Police Station in no time.

What it does:

It asks a WhatsApp user to share his/her 'current location' and according to that it searches for nearby Ambulances & shares that patient's complete details (with live location) to the nearest Ambulance.

And then it searches for nearest hospital (with highest rating in google) within a given radius & shares that data with the ambulance & patient as destination (with distance & estimate driving time) in a single WhatsApp message.

And then it searches for nearest police station to Hospital & nearest police station to the Patient and asks both of them to clear road jam between Ambulance Location - Patient Location & Patient Location - Hospital Location , and shares ambulance's complete details (eg. Number Plate Details) with pick up & drop off location.

Also, it shares nearest vaccination centres details according to your location through WhatsApp

How we built it :

We built it using Flask, Twilio, Google Reverse Geocoding API, Google Places API, Google Distance Matrix API & to access csv datas we have used pandas

User Manual

pip install twilio
pip install Flask
pip install requests


For Twilio click here

Login / Create Account using Email & Mobile number

Click on: Develop -> Messaging -> Try it out -> Send a WhatsApp message

Send your activation code (eg. join ....) to +14155238886


For Google API click here

Login using Google

Create a project

Create --> Billing Account --> Wait for Verification

Search --> Geocoding API --> Enable it ---> Copy --> API KEY

Search --> Places API --> Enable it ---> Copy --> API KEY Search --> Distance MAtrix API --> Enable it ---> Copy --> API KEY


Download ngrok from here

Unzip the file

open terminal from Downloads or where you have saved that file

paste ./ngrok http 5000 inside your terminal & press enter

Copy --> Forwarding No.1 (eg. https://..........ngrok.io) --> & Paste that here [When A Message Comes In Box]

Copy --> Forwarding No.2 (eg. https://..........ngrok.io) --> & Paste that here [Status Callback URL]