Project Theseas
Project Theseas
A Project Report
Submitted by
CIBI.P 1912106
NIYASKHAN.M 1912129
SIVAPRAKASH.T 1912144
NARASIMMAN.R 2012907
Guided BY:
Dr.A.CHARLES M.E.,Ph.D
i
BONAFIDE CERTIFICATE
Certificated that this project work-II “Ambulance Alerting System” is
the bonafide work done by the following students under my supervision
CIBI.P 1912106
NIYASKHAN.M 1912129
SIVAPRAKASH.T 1912144
NARASIMMAN.R 2012907
SIGNATURE SIGNATURE
Dr.A.CHARLES M.E.,Ph.D.,(AP/ECE) Dr.S.LETITA M.E.,Ph.D.,
Supervisor, Head of the Department,
Department of ECE, Department of ECE,
Government college of Engineering, Government college of Engineering,
Bargur-635 104 Bargur-635 104
ii
ACKNOWLEDGEMENT
We feel glad to take this opportunity to cordially acknowledge a number of people who
provided us with great support during our project.
We would like to express our deep sense of gratitude to our respected Principal
Dr.R.VIJAYAN, M.E., Ph.D., who has bestowed his kind grace and affection on us in
accomplishing this project.
Sincere thanks to Dr.S.LETITA M.E., Ph.D., Head of the Department of Electronics and
Communication Engineering, Bargur on providing facilities to do the project work and utilise
all the facilities in this college.
We would like to thank our project Coordinator, R.RANJITH M.E., Assistant Professor ,
Department of Electronics and Communication Engineering, who guided us throughout the
entire phase of our projects with his esteemed presence . It is his motivation and guidance
which made us explore our project.
It is our opportunity to express gratitude and sincere thanks to our guide Dr.A.CHARLES
M.E.,Ph.D.,(AP/ECE) Supervisor who gave us the motivation to do our project. We are also
thankful to all the faculty members and laboratory assistants for our department for their
constructive guidance and encouragement.
Finally, we thank our parents, teaching, non-teaching staff and friends who helped us in
completing this project successfully.
iii
TABLE OF CONTENTS
ACKNOWLEDGEMENT iii
TABLE OF FIGURE vi
ABSTRACT ix
1.1. Introduction 1
1.4. Motivation 2
3.1. Front-End 8
3.1.3. JavaScript 10
3.2. Back-end 11
3.2.1. Python 11
3.2.2. Flask 12
3.2.3. MySQL 13
3.3. ngrok 17
3.4. MapMyIndia 17
3.5. Discord 19
CHAPTER 6: Result 31
7.1. Limitation 33
CHAPTER 8: Conclusion 34
REFERENCE 35
v
Page No
TABLE OF FIGURE
Fig. 1.2.1: Ambulance Alerting System 1
Fig. 2.2.1: Flow diagram 4
Fig. 2.3.1: Block Diagram 6
Fig. 3.4.2: MapMyIndia Direction Plugin 18
Fig. 3.4.1: MapMyIndia Nearby plugin 18
Fig. 5.1.1: User Registration page for Admin 25
Fig. 5.1.2: Register Page for Hospital 25
Fig. 5.1.3: Register Page for Traffic Police 25
Fig. 5.2.1: Login Page 26
Fig. 5.2.2: Traffic Police Page 26
Fig. 5.2.3: Hospital Page 26
Fig. 5.2.4: Ambulance Driver Page 27
Fig. 5.3.1: Asking for location access 27
Fig. 5.3.2: Nearby Hospitals in the ambulance driver area 28
Fig. 5.3.3: Direction to Hospital 28
Fig. 5.3.4: From-to form for ambulance driver 28
Fig. 5.3.5: Message to hospital 29
Fig. 5.3.6: Message to Traffic police 29
Fig. 5.3.7: Show Road and hospital availability status 29
Fig. 5.4.1: Traffic police page guide 30
Fig. 5.5.1: Hospital page guide 30
Fig. 5.5.1: Admin Page result 31
Fig. 5.5.2: Ambulance driver page result 32
Fig. 5.5.3: Message is sent to the traffic police and hospital 32
Fig. 5.5.4: Hospital Page 32
Fig. 5.5.5: Traffic police page result 32
vi
Page No
LIST OF TABLES
Table 2.1: Project Analysis 3
Table 3.1: Tools used in this project 7
Table 4.1: User Table Description 22
Table 4.2: User Table Example 22
Table 4.3: Traffic signal table description 23
Table 4.4: Traffic signal table example 23
Table 4.5: Hospital table description 24
Table 4.6: Traffic signal table example 24
vii
LIST OF ABBREVIATION
S. No. Abbreviation Full Form
3 JS JavaScript
7 UI User Interface
8 UX User Experience
viii
ABSTRACT
It is a common sight at busy traffic junctions where ambulances struggle to find a
way to carry patients for treatment during the golden hour. It even happens in this world with
the technology that able to send satellites to space. By reducing the traffic time on the roads
for the ambulance we may able to save the patients. If we can able to save that time, doctor
utilise those time to give first aid and diagnose the problem. The problem is that the traffic
police do not aware of the ambulance that stuck in the traffic. Our concept is to send a message
about that the ambulance coming way to the traffic police. So that, they can clear the traffic on
that way, so the ambulance doesn’t need to wait for in the traffic. It is helpful for the highly
populated and highly traffic cities like Chennai, Coimbatore, Bangalore, etc. According to a
report published by Times of India about 146,133 people were killed in road accidents in India
in the year 2016. Unfortunately, about 30% of deaths are caused due to delayed ambulance.
Another Indian Government data shows, more than 50% of heart attack cases reach hospital
late, which can constitute unavailability of ambulances too but majority of it is due to patients
stuck in traffic.
ix
CHAPTER 1
1. Introduction of Ambulance Alerting System
1.1. Introduction
Ambulance is used to take the patient to the hospital at maximum fast that it could
take the patient to the hospital. But in the high populated city or high traffic city, some
ambulance struck at the traffic that is unnoticed by the traffic police to make a way for it.
Taking the patients early to the hospital will increase the probability of the life of the patient.
We need some technology or system that send the information to the traffic police regarding
the ambulance is coming in this route so they can make the way for it and ambulance can able
to reach the hospital early. To solve this, we introduce an Ambulance Alerting System which
will able to send the ambulance information to the traffic police.
1
1.3. Aim of the project
Aim of this project is take the patient to the hospital in ambulance as early by not get
struck in the traffic by sending the ambulance coming information to the traffic police, so
he/she can make the way for it. This may save the patient's life.
1.4. Motivation
Taking the patient to the hospital as early as possible can able to save the life of the
patient. Ambulance plays an important role in taking the patients to the hospital. But the traffic
in the high traffic city struck the ambulance in the traffic. A report published in Times of India
about 146,133 people were killed in road accidents in India in the year 2016. Unfortunately,
about 30% of deaths are caused due to delayed ambulance. Another Indian government data
shows more than 50% of heart attack patients reach hospital late, which can constitute
unavailability of ambulances too but majority of it is due to patients’ stocks in traffic. It
motivated us to do the Ambulance alerting system.
2
CHAPTER 2
2. Planning and Analysing
Application
interacting What they do? What the Application need to do?
person
4
When user login to our website it checks whether the user is registered or not, if not
it shows invalid login credentials. If the user record is found in the database, then it checks
whether the user is ambulance driver. If no then it checks whether the user is hospital. If yes it
loads the hospital page and the hospital can able to update whether the hospital has vacancy or
not. If user is not the hospital, then it loads traffic police page and the traffic police can able to
update whether traffic is free or not. If the user is ambulance driver, then the ambulance driver
page will be loaded. Then it will access the location, then loads the MapMyIndia plugin for
direction and nearby search plugin, displays the hospital availability and traffic status in signals
in between the destination.
The Home page of the of Ambulance alerting system is login page. Based on the
login details, the server automatically redirects the user to the ambulance driver page, traffic
police page, hospital page respectively. The ngrok makes the localhost website to internet.
Python (flask server) is used to serve the html, CSS, js and also act as the backend. In
ambulance driver page they can able to see the nearby hospitals and the direction for that
hospital, this is done using the MapMyIndia Direction API and Nearby API. Ambulance driver
can able to select the destination and current location to send the information to traffic police
and hospital discord channels using a discord webhook. Ambulance driver can able to see the
list of hospital in the destination and the bed availability of that hospital in the webpage.
Hospital can change the hospital bed availability status to yes or no from there page. Similarly,
Traffic police can change the road status to free or busy based on the traffic from the webpage.
MySQL is used to store the data in form of the table. Using the Admin page we can register
the ambulance driver, traffic police, hospital. So, they able to login on the website and perform
the necessary action.
5
Fig. 2.3.1: Block Diagram
6
CHAPTER 3
3. Tools used
3.2
3.2.2 Flask Flask is the framework of python that serve
front-end
7
3.1. Front-End
The objective of designing a site is to ensure that when the users open up the site,
they see the information in a format that is easy to read and relevant. This is further complicated
by the fact that users now use a large variety of devices with varying screen sizes and
resolutions thus forcing the designer to take into consideration these aspects when designing
the site. They need to ensure that their site comes up correctly in different browsers (cross-
browser), different operating systems (cross-platform) and different devices (cross-device),
which requires careful planning on the side of the developer.
The Hypertext Markup Language or HTML is the standard markup language for
documents designed to be displayed in a web browser. It can be assisted by technologies such
as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
Web browsers receive HTML documents from a web server or from local storage
and render the documents into multimedia web pages. HTML describes the structure of a web
page semantically and originally included cues for the appearance of the document.
HTML elements are the building blocks of HTML pages. With HTML constructs,
images and other objects such as interactive forms may be embedded into the rendered page.
HTML provides a means to create structured documents by denoting structural semantics for
text such as headings, paragraphs, lists, links, quotes, and other items. HTML elements are
delineated by tags, written using angle brackets. Tags such as <img /> and <input /> directly
introduce content into the page. Other tags such as <p> surround and provide information about
document text and may include other tags as sub-elements. Browsers do not display the HTML
tags but use them to interpret the content of the page.
HTML can embed programs written in a scripting language such as JavaScript, which
affects the behaviour and content of web pages. The inclusion of CSS defines the look and
8
layout of content. The World Wide Web Consortium (W3C), former maintainer of the HTML
and current maintainer of the CSS standards, has encouraged the use of CSS over explicit
presentational HTML since 1997. A form of HTML, known as HTML5, is used to display
video and audio, primarily using the <canvas> element, in collaboration with JavaScript.
Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a markup language such as HTML or XML (including
XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone technology of the
World Wide Web, alongside HTML and JavaScript.
Separation of formatting and content also makes it feasible to present the same
markup page in different styles for different rendering methods, such as on-screen, in print, by
voice (via speech-based browser or screen reader), and on Braille-based tactile devices. CSS
also has rules for alternate formatting if the content is accessed on a mobile device.
The name cascading comes from the specified priority scheme to determine which
style rule applies if more than one rule matches a particular element. This cascading priority
scheme is predictable.
The CSS specifications are maintained by the World Wide Web Consortium (W3C).
Internet media type (MIME type) text/CSS is registered for use with CSS by RFC 2318 (March
1998). The W3C operates a free CSS validation service for CSS documents.
In addition to HTML, other markup languages support the use of CSS including
XHTML, plain XML, SVG, and XUL.
9
3.1.3. JavaScript
JavaScript, often abbreviated as JS, is a programming language that is one of the core
technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of websites
use JavaScript on the client side for webpage behaviour, often incorporating third-party
libraries. All major web browsers have a dedicated JavaScript engine to execute the code on
users' devices.
The ECMAScript standard does not include any input/output (I/O), such as
networking, storage, or graphics facilities. In practice, the web browser or other runtime system
provides JavaScript APIs for I/O.
JavaScript engines were originally used only in web browsers, but are now core
components of some servers and a variety of applications. The most popular runtime system
for this usage is Node.js.
Although Java and JavaScript are similar in name, syntax, and respective standard
libraries, the two languages are distinct and differ greatly in design.
The use of JavaScript has expanded beyond its web browser roots. JavaScript engines
are now embedded in a variety of other software systems, both for server-side website
deployments and non-browser applications. Initial attempts at promoting server-side JavaScript
usage were Netscape Enterprise Server and Microsoft's Internet Information Services, but they
were small niches. Server-side usage eventually started to grow in the late 2000s, with the
creation of Node.js and other approaches. Electron, Cordova, React Native, and other
application frameworks have been used to create many applications with behaviour
implemented in JavaScript. Other non-browser applications include Adobe Acrobat support for
scripting PDF documents and GNOME Shell extensions written in JavaScript. JavaScript has
recently begun to appear in some embedded systems, usually by leveraging Node.js.
10
3.2. Back-end
3.2.1. Python
Python can serve as a scripting language for web applications, e.g., via mows for the
Apache webserver. With Web Server Gateway Interface, a standard API has evolved to
facilitate these applications. Web frameworks like Django, Pylons, Pyramid, Turnovers,
web2py, Tornado, Flask, Bottle, and Zopf support developers in the design and maintenance
of complex applications. Pyjs and IronPython can be used to develop the client-side of Ajax-
based applications. SQLAlchemy can be used as a data mapper to a relational database. Twisted
is a framework to program communications between computers, and is used (for example) by
Dropbox. Libraries such as NumPy, SciPy, and Matplotlib allow the effective use of Python in
scientific computing,with specialized libraries such as Biopython and Astropy providing
domain-specific functionality. SageMath is a computer algebra system with a notebook
interface programmable in Python: its library covers many aspects of mathematics, including
algebra, combinatorics, numerical mathematics, number theory, and calculus.OpenCV has
Python bindings with a rich set of features for computer vision and image processing. Python
is commonly used in artificial intelligence projects and machine learning projects with the help
of libraries like TensorFlow, Keras, Pytorch, and Scikit-learn. As a scripting language with a
modular architecture, simple syntax, and rich text processing tools, Python is often used for
natural language processing.Python can also be used to create games, with libraries such as
Pygame, which can make 2D games. Python has been successfully embedded in many software
11
products as a scripting language, including in finite element method software such as Abaqus,
3D parametric modelers like FreeCAD, 3D animation packages such as 3ds Max, Blender,
Cinema 4D, Lightwave, Houdini, Maya, modo, MotionBuilder, Softimage, the visual effects
compositor Nuke, 2D imaging programs like GIMP,Inkscape, Scribus and Paint Shop Pro,and
musical notation programs like scorewriter and capella. GNU Debugger uses Python as a pretty
printer to show complex structures such as C++ containers. Esri promotes Python as the best
choice for writing scripts in ArcGIS. It has also been used in several video games, and has been
adopted as first of the three available programming languages in Google App Engine, the other
two being Java and Go.Many operating systems include Python as a standard component. It
ships with most Linux distributions, AmigaOS 4 (using Python 2.7), FreeBSD (as a package),
NetBSD, and OpenBSD (as a package) and can be used from the command line (terminal).
Many Linux distributions use installers written in Python: Ubuntu uses the Ubiquity installer,
while Red Hat Linux and Fedora Linux use the Anaconda installer. Gentoo Linux uses Python
in its package management system, Portage. Python is used extensively in the information
security industry, including in exploit development. Most of the Sugar software for the One
Laptop per Child XO, developed at Sugar Labs since 2008, is written in Python. The Raspberry
Pi single-board computer project has adopted Python as its main user-programming language.
LibreOffice includes Python and intends to replace Java with Python. Its Python Scripting
Provider is a core feature since Version 4.0 from 7 February 2013.
3.2.2. Flask
Components
The microframework Flask is part of the Pallets Projects (formerly Pocoo), and based
on several others of them, all under a BSD license.
12
Werkzeug Werkzeug (German for "tool") is a utility library for the Python programming
language for Web Server Gateway Interface (WSGI) applications. Werkzeug can instantiate
objects for request, response, and utility functions. It can be used as the basis for a custom
software framework and supports Python 2.7 and 3.5 and later.
Jinja Main: Jinja (template engine) Jinja, also by Ronacher, is a template engine for the Python
programming language. Similar to the Django web framework, it handles templates in a
sandbox.
MarkupSafe MarkupSafe is a string handling library for the Python programming language.
The eponymous MarkupSafe type extends the Python string type and marks its contents as
"safe"; combining MarkupSafe with regular strings automatically escapes the unmarked
strings, while avoiding double escaping of already marked strings.
ItsDangerous: ItsDangerous is a safe data serialization library for the Python programming
language. It is used to store the session of a Flask application in a cookie without allowing
users to tamper with the session contents.
Features of flask
3.2.3. MySQL
13
structure the data. SQL is a language programmers use to create, modify and extract data from
the relational database, as well as control user access to the database. In addition to relational
databases and SQL, an RDBMS like MySQL works with an operating system to implement a
relational database in a computer's storage system, manages users, allows for network access
and facilitates testing database integrity and creation of backups. MySQL is free and open-
source software under the terms of the GNU General Public License, and is also available under
a variety of proprietary licenses. MySQL was owned and sponsored by the Swedish company
MySQL AB, which was bought by Sun Microsystems (now Oracle Corporation). In 2010,
when Oracle acquired Sun, Widenius forked the open-source MySQL project to create
MariaDB. MySQL has stand-alone clients that allow users to interact directly with a MySQL
database using SQL, but more often, MySQL is used with other programs to implement
applications that need relational database capability. MySQL is a component of the LAMP web
application software stack (and others), which is an acronym for Linux, Apache, MySQL,
Perl/PHP/Python. MySQL is used by many database-driven web applications, including
Drupal, Joomla, phpBB, and WordPress. MySQL is also used by many popular websites,
including Facebook, Flickr, MediaWiki, Twitter, and YouTube.
Feature:
MySQL is offered under two different editions: the open source MySQL Community
Server and the proprietary Enterprise Server. MySQL Enterprise Server is differentiated by a
series of proprietary extensions which install as server plugins, but otherwise shares the version
numbering system and is built from the same code base.
When using some storage engines other than the default of InnoDB, MySQL does
not comply with the full SQL standard for some of the implemented functionality, including
foreign key references. Check constraints are parsed but ignored by all storage engines before
MySQL version 8.0.15.
MySQL database's inbuilt functions like UNIX_TIMESTAMP() will return 0 after 03:14:07
UTC on 19 January 2038. Recently, there had been an attempt to solve the problem which had
been assigned to the internal queue.
Deployment
MySQL can be built and installed manually from source code, but it is more
commonly installed from a binary package unless special customizations are required. On most
Linux distributions, the package management system can download and install MySQL with
minimal effort, though further configuration is often required to adjust security and
optimization settings.
There are, however, limits to how far performance can scale on a single server
('scaling up'), so on larger scales, multi-server MySQL ('scaling out') deployments are required
to provide improved performance and reliability. A typical high-end configuration can include
a powerful master database which handles data write operations and is replicated to multiple
slaves that handle all read operations.[96] The master server continually pushes binlog events to
connected slaves so in the event of failure a slave can be promoted to become the new master,
minimizing downtime. Further improvements in performance can be achieved by caching the
16
results from database queries in memory using memcached, or breaking down a database into
smaller chunks called shards which can be spread across a number of distributed server clusters.
3.3. ngrok
3.4. MapMyIndia
MapmyIndia offers Navigation, Tracking, IoT, Analytics and web mapping service
for desktop and mobile devices. The company also offers advanced GPS tracking devices, car
in-dash infotainment & plug & play on-board diagnostics car tracker. The navigation service
features street view, public transit information and turn-by-turn navigation with spoken
17
instructions for vehicles. It later launched offline navigation app, Navimaps that uses offline
vector data to offer 3D terrains and city models and 3D building for in-car infotainment systems
Fig. 3.4.1: MapMyIndia Nearby plugin Fig. 3.4.2: MapMyIndia Direction Plugin
This plugin, offered by MapmyIndia Places & Directions SDK for Web, uses
integrated places searches for directions for several modes of transportation, including driving,
biking and walking.
A simple plugin / widget to search for nearby places powered by the best online maps
from MapmyIndia. The Nearby Search plugin for MapmyIndia Web Map JS library is provided
as a means to enable radially searching for Nearby Places on MapmyIndia Maps.
18
The plugin can be used in combination with our Interactive Map JS library but it also
possesses the adaptability to be used as an independent plugin within any web app
implementation. Thus it enables developers to include MapmyIndia Places SDK in their own
customized solutions easily.
● Ability to search for nearby places directly with or without MapmyIndia Maps visual
interface.
● A MapmyIndia.nearby() method to initiate nearby search across all categories of places
available on MapmyIndia.
● Ability to get information from MapmyIndia Place Search plugin through a callback
● Include the Nearby Search Plugin with or without an interactive Map component
3.5. Discord
Discord is a VoIP and instant messaging social platform. Users have the ability to
communicate with voice calls, video calls, text messaging, media and files in private chats or
as part of communities called "servers".A server is a collection of persistent chat rooms and
voice channels which can be accessed via invite links. Discord runs on Windows, macOS,
Android, iOS, iPadOS, Linux, and in web browsers. As of 2021, the service has over 350
million registered users and over 150 million monthly active users.
19
extended in February 2018 to include esports teams and musical artists. By the end of 2017,
about 450 servers were verified. Members can help servers obtain perks in three levels via the
"Server Boost" feature, which unlocks higher quality voice channels, more emoji slots, and
other perks. Users can buy boosts for servers for $4.99 a month. "Discord Nitro" subscribers
get two boosts included in the price of Nitro, and 30% off for additional boosts. In 2020,
Discord unveiled a new feature, known as "Community servers". It includes such features like
a custom welcome screen, server insights, and the ability to advertise on Discord's Server
Discovery page.
We can create in discord that may be either used for voice chat and streaming or for instant
messaging and file sharing. The visibility and access to channels can be customized to limit
access for certain users; for example, marking a channel "NSFW" (Not Safe For Work) requires
that first-time viewers confirm they are over 18 years old and willing to see such content. Text
channels support some rich text using Markdown-like syntax, e.g. *text* to emphasize text,
and ||text|| notation for inline spoilers. Code blocks with language-specific highlighting can also
be used. There is also a nonstandard, Discord-specific __text__ syntax that underlines the text.
Discord launched Stage Channels in May 2021, a feature similar to Clubhouse which allows
for live, moderated channels, for audio talks, discussions, and other uses, which can further be
potentially gated to only invited or ticketed users. Initially, users could search for open Stage
Channels relevant to their interests through a Stage Discovery tool, which was discontinued in
October 2021. In August 2021, Discord launched Threads, which are temporary text channels
that can be set to automatically disappear. This is meant to help foster more communication
within servers. In September 2022, Discord launched Forum Channels, which gives the ability
provide a space for organized discussions within a channel. Users can create multiple "posts"
which work like Threads, organised in a forum-like manner.
Webhooks are a utility used to send messages to text channels without needing a
Discord application. Webhooks are useful for allowing something to send messages without
requiring a Discord application. You can also directly edit or delete messages you sent through
the webhook. There are two structures to make use of this functionality: Webhook and
WebhookClient. WebhookClient is an extended version of a Webhook, which allows you to
send messages through it without needing a bot client.
20
Webhooks are a utility used to send messages to text channels without needing a
Discord application. Webhooks are useful for allowing something to send messages without
requiring a Discord application. You can also directly edit or delete messages you sent through
the webhook. There are two structures to make use of this functionality: Webhook and
WebhookClient. WebhookClient is an extended version of a Webhook, which allows you to
send messages through it without needing a bot client.
Bots receive webhook messages in a text channel as usual. You can detect if a
webhook sent the message by checking if the Message.webhookId is not null.
21
CHAPTER 4
4. Project - Database Schema
User table:
User table has user_id, name, email_id, proffession, password column. It is used to
authenticate the users and after authentication redirect to the specified page based on there
profession.
Table Description:
Example table:
22
Traffic signal:
This table stores signal_id, from location, to location,signal location, traffic police
name, road status, discord_name columns.
Table Description:
Table Example:
Hospital table:
These table has hospital name, hospital location, availability of accepting the patient
Table description:
23
h_discord_na varchar(100) NO Chapter 5: NULL
me
Table Example:
24
CHAPTER 5
5. User Guide
6. Admin need to fill these details and able to register the new user.
25
5.2. User Login
1. User need to visit www. <domain>.com. The below webpage will be loaded.
2. User need to enter their registered email id and password. It automatically takes the
user to the respective home page.
26
Fig. 5.2.4: Ambulance Driver Page
27
2. Based on the location it shows the list of nearby hospitals as shown below. If you tap
the location, it will show the direction
3. To send the message to the traffic police regarding the coming of the ambulance, select
the from and to location in the form shown below
4. Once you submit, it automatically sends the message to both hospital and traffic police
as shown below in the discord channel.
28
Fig. 5.3.5: Message to hospital
5. The webpage also whether the signal is busy or free, hospital is free or busy, traffic police
name, etc… as shown below.
29
Fig. 5.4.1: Traffic police page guide
2. If he/she receive any message from ambulance alerting system bot he/she need to clear
the road mentioned in the message.
1. They need to mention whether the hospital is available for patient to admit or not by
using the below page.
30
CHAPTER 6
6. Result
1. The New record is successfully inserted to the database from the admin page as shown in
the below.
31
2. Message is sent to the discord and the required details are shown in the website for the
ambulance driver page. Nearby hospital and direction of the hospital is shown in the
website
32
CHAPTER 7
7. Limitation and Future Scope
7.1. Limitation
33
CHAPTER 8
8. Conclusion
The Ambulance alerting system is used to intimate the traffic police regarding the coming of
the ambulance. So, he/she can able to clear the traffic on the road to give path to the ambulance.
This makes ambulance can able to reach as early as possible. The system also able to send the
information to the hospital to get ready to accept the patient. The hospital can able to update
whether the hospital is fill or having vacancy, using this information ambulance driver can able
to go to the right hospital. Traffic police can also able to update the information, whether the
road is free or busy, using this information the ambulance driver can decide the best path to
take the patient to the hospital.
34
Reference:
[1] https://medium.com/@bkshashi9/ambulance-stuck-in-traffic-scary-right-
7b539ce518b9
[2] https://frontendmasters.com/guides/front-end-handbook/2018/what-is-a-FD.html
[3] https://github.com/MapmyIndia/mapmyindia-places-n-directions-web-
sdk/tree/main/Directions-plugin
[4] https://github.com/MapmyIndia/mapmyindia-places-n-directions-web-
sdk/tree/main/nearbySearch-plugin
[5] https://www.tutorialspoint.com/flask/index.htm
[6] https://www.w3schools.com/python/python_mysql_getstarted.asp
[7] https://www.w3schools.com/html/html_css.asp
35