0% found this document useful (0 votes)
16 views

Java Project Document-4

Uploaded by

raniersavadla
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Java Project Document-4

Uploaded by

raniersavadla
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

PROJECT WORK On

Enhancing Coastal Tourism Safety


Submitted to CMREC (UGC Autonomous)
In Partial Fulfilment of the requirements for the Award of Degree of
BACHELOR OF TECHNOLOGY IN COMPUTER SCIENCE AND
ENGINEERING (DATA SCIENCE)

Submitted By
B.GREESHMA-238R1A6772
R.AVINASH-238R1A67B3
CH.VIVEK248R5A6706
L.HARSHA VARDHAN SAI-238R1A6798
CSE-(Data Science)-B
Under the guidance of
A.SAI KIRAN
Assistant Professor , Department of Data Science
CMR ENGINEERING COLLEGE

(Accredited by NBA, Approved by AICTE, NEW DELHI, Affiliated to JNTU,


Hyderabad)
Kandlakoya, Medchal Road, R.R. Dist. Hyderabad-501 401)
2024-2025
INDEX
SL NO DESCRIPTION PAGE
NO
1 DECLARATION 03

2 CERTIFICATE 04

3 ACKNOWLEDGEMENT 05

4 PROJECT REPORT- TITLE- ENHANCING COASTAL TOURISM 06


SAFETY

5 ABSTRACT 07

6 INTRODUCTION 07

7 TESTING THE PROJECT / SAMPLE TEST CASES 08

8 SKILLS REQUIRED, WORKING PRINCIPLE 10

9 STEPS INVOLVED,& DOCUMENTATION 10

10 IMPACT AND BENEFITS 13

11 CONCLUSION 16

12 RESULT 18

13 RESEARCHS / REFERENCE 19
DECLARATION
This is to certify that the work reported in the present Project entitled Enhancing
Coastal Tourism Safety
in a record of bonafide work done by OUR TEAM in the Department
of Data Science, CMR Engineering College.
It is based on our study and/or research and that we have acknowledged all
material and sources used in its preparation, whether they be books, articles,
reports, lecture notes, and any other kind of document, electronic or personal
communication.
We also certify that this project has not previously been submitted for assessment in
any academic capacity, and that I have not copied in part or whole or otherwise
plagiarised the work of other persons.
The reports are based on the Project work done entirely by me and not copied from
any other source. I submit my Project for further development by any interested
students who share similar interests to improve the Project in the future.
The results embodied in this Project report have not been submitted to any other
University or Institute for the award of any degree or diploma to the best of our
knowledge and belief. We confirm that we have identified and declared all
possible conflicts that we may have.

B.GREESHMA-238R1A6772
R.AVINASH-238R1A67B3
CH.VIVEK248R5A6706
L.HARSHA VARDHAN SAI-238R1A6798
CERTIFICATE
CMR ENGINEERING COLLEGE
(Accredited by NRA.Approved by AICTE NEW DELHI, Affiliated to JNTU, Hyderabad)
Kandlakoya, Medchal Road, Hyderabad-501 401

Department of Data Science


This is to certify that the Project entitled
Enhancing Coastal Tourism Safety
a bonafide work carried out and submitted by

in partial fulfillment of the requirement for the award of the degree of BACHELOR OF
TECHNOLOGY (CSE) from CMR Engineering College, under our guidance and supervision.
The results presented in this Projecthave been verified and are found to be satisfactory & it is
successfully completed.

Internal Guide
A . SAI KIRAN
Assistant Professor
Department of Data Science, CMREC, Hyderabad.
Head of the Department
DR.M.LAXMAIAH ,
Professor & HOD, Department of Data Science, CMREC, Hyderabad
.
ACKNOWLEDGEMENT
First of all, we would like to thank the almighty God for listening my prayers and
giving me strength to complete the dissertation work.

We would like to express a deep sense of gratitude and thanks profusely to A . SAI
KIRAN , Assistant Professor, Department of Data Science, CMR Engineering
College, our guide and mentor, without the wise counsel and able guidance, it
would have been impossible to complete the dissertation in this manner.

We would like to express my sincere gratitude to our principal


DR.A.SRINIVASULA REDDY and our HOD DR.M.LAXMAIAH
and the College for providing me with facilities required to do my project and we
are also grateful to for cooperation to me for carrying out this work. We shall be
failing in our duty if we don't acknowledge the support recived in order to complete
the work.

We must also express my deep regards and thanks to our parents for supporting
and boosting my morale so that we can overcome my hard times. we also want to
thank our senior & our friends.

We finally pray that Almighty fulfils the aspirations of all the people who have been
a part of this journey and those who will be a part of future journeys.

YEAR: 2024-2025
PROJECT REPORT

Topic-
Enhancing Coastal Tourism Safety
Submitted by-

B.GREESHMA-238R1A6772
R.AVINASH-238R1A67B3
CH.VIVEK248R5A6706
L.HARSHA VARDHAN SAI-238R1A6798
Submitted to

A . SAI KIRAN
Assistant Professor Department of Data Science,

Title- - Enhancing Coastal Tourism Safety


Introduction
This web application is designed to help users assess the
suitability of beaches for recreational activities across
India. The tool provides real-time data on beach
conditions such as temperature, wind speed, and
suitability based on weather conditions. Users can enter
the latitude and longitude of any beach to receive detailed
suitability information. The application uses weather data
obtained from external APIs (Open Meteo) and processes
this data to determine whether a particular beach is
suitable for recreational activities like swimming or beach
sports.

The app is built using Flask (Python) for the backend,


HTML/CSS for the frontend, and JavaScript for dynamic
client-side interactions. It aims to assist coastal tourists in
determining the safety of beaches based on current
weather conditions, ensuring a safe and enjoyable
experience.
**SKILLS REQUIRED**
To develop the " Enhancing Coastal Tourism Safety " web application, the following
skills are essential:

Frontend Development

HTML, CSS, and JavaScript


Understanding of DOM manipulation and handling asynchronous
operations using fetch
Backend Development

Python (Flask framework)

Knowledge of RESTful API design and working with external APIs

Understanding of JSON data parsing and error handling

Deployment and Hosting

Web Hosting Services: Knowledge of deploying applications online.


Responsive Design: Ensuring compatibility across devices.
Version Control (Git): For code management and collaboration.

Additional Skills

Debugging and Testing: Ensuring code reliability.


User Experience (UX) Design: Creating a user-friendly interface.
Security Best Practices:Knowledge of securing the backend, including input
validation, data encryption, and secure data storage.
- Enhancing Coastal Tourism Safety

Testing the Project / Sample Test Cases


Here are sample test cases and instructions for testing
the project:

Test Case 1: Valid Latitude and Longitude


Open the app in a browser.
Enter a valid latitude (e.g., 19.0760) and longitude (e.g., 72.8777) for a
known beach (e.g., Mumbai Beach).
Click on the "Get Suitability" button.

Expected Result: The app will display suitability, temperature, and wind
speed data for the given coordinates.

Test Case 2: Invalid Latitude or Longitude


Open the app.
Enter an invalid latitude or longitude (e.g., "abc").
Click on the "Get Suitability" button.
Expected Result: The app will display an error message asking the
user to enter valid numerical values.

Test Case3: Missing Latitude or Longitude


Open the app.
Leave the latitude or longitude field blank.
Click on the "Get Suitability" button.
Expected Result: The app will show a message prompting the user to
enter both latitude and longitude.

Test Case 4: Error from the API


Enter a valid latitude and longitude but simulate a failure (e.g., by
blocking the API in the browser or backend).
Click on the "Get Suitability" button.
Expected Result: The app will display an error message indicating
that data could not be fetched, with a suggestion to try again later.

Geospatial and Weather Data:

Basic knowledge of weather parameters like temperature, wind speed, and ocean conditions
Ability to use APIs like Open Meteo and process their data to extract meaningful insights
Development Tools:

Git for version control


Familiarity with IDEs like Visual Studio Code or PyCharm

Working Principle:
The application determines the suitability of a beach for recreational activities
based on the current weather conditions (temperature, wind speed) and other
parameters (ocean alerts like high wave, storm surge, etc.). The workflow is as
follows:

User Input: The user enters the latitude and longitude of a beach location via an
HTML form.
Data Validation: JavaScript validates the input values (ensuring they are numeric).
API Request: The frontend sends the latitude and longitude data to the backend via
a POST request.
Backend Processing: Flask receives the request, extracts the coordinates, and
queries the Open Meteo API to fetch weather data for the given location.
Suitability Assessment: The backend assesses the suitability based on predefined
conditions like temperature (between 20–30°C) and wind speed (under 20 km/h).
The result is sent back to the frontend.
Displaying Results: The frontend dynamically updates the webpage with the
suitability of the location, along with temperature and wind speed details.
5. Steps Involved
Running the Application:
Open the app in the browser.
Enter a latitude and longitude in the input fields.
Click on the "Get Suitability" button.
View the results (suitability, temperature, wind speed) displayed below the form.
Folder Breakdown:
bash
Copy code
/beach-suitability
├── /templates
│ ├── index.html
├── /static
│ ├── app.js
│ ├── style.css
├── app.py
├── requirements.txt

Explanation:
/templates: This folder contains the HTML files (index.html).
/static: Contains the JavaScript (app.js) and CSS (style.css) files for the frontend.
app.py: The main backend file where the Flask server runs.
requirements.txt: Contains the list of Python dependencies, including Flask.
index.html (Located in the templates/ folder)
This file contains the basic structure of the webpage. It includes:
A form to input latitude and longitude.
A result area to display the suitability, temperature, and wind speed.
style.css (Located in the static/ folder)
This file contains the styling rules to design the user interface. It ensures the form
and results are visually appealing and easy to interact with.

app.js (Located in the static/ folder)


This JavaScript file:
Listens for form submissions.
Sends the latitude and longitude to the Flask backend.
Handles the response and dynamically updates the page with the results.
app.py (Backend Python file)
This is the core of the application, where the backend logic resides. Key functions
include:

index(): Renders the homepage.


get_beach_suitability(): Receives POST requests with latitude and longitude,
fetches weather data from Open Meteo API, and assesses suitability.
get_weather_data(): Queries the Open Meteo API to retrieve current weather
conditions for the given coordinates.
assess_suitability(): Uses a simple algorithm to assess whether the beach is
suitable for recreation based on weather data.
Installing Flask
Running the Flask Application Open your browser and go to the URL
http://127.0.0.1:5000/ to access the web app.
Advantages and Challenges:
Advantages
Real-time data: Users get up-to-date information on weather and suitability for
beach recreation.
Ease of Use: The interface is simple and straightforward, making it accessible for a
wide audience.
Wide Reach: As a web app, it can be accessed from any device with internet
connectivity.

Challenges
Data Dependency: The app relies on external APIs (e.g., Open Meteo) to fetch
weather data. Any issue with the API could affect the app's functionality.
Edge Case Handling: Handling beaches in remote areas where data may not be
available.
Performance: While Flask is great for prototyping, a production version of the app
might require optimization for handling larger traffic loads.

CONCLUSION
he Beach Suitability for Recreation application is an effective tool for
tourists to assess the safety and recreational potential of beaches based
on real-time weather data. It leverages modern web technologies and
APIs to provide an easy-to-use and informative platform. Future
improvements could include adding more environmental factors (e.g.,
ocean currents, water quality), user authentication, or the ability to set
alerts for dangerous conditions.

REFERENCES/RESEARCHS

Open-Meteo API: https://open-meteo.com/ - API for real-


time weather data.
Flask Documentation: https://flask.palletsprojects.com/ -
Documentation for Flask, the Python web framework used
in the app.
JavaScript Fetch API:
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_
API - Documentation for handling HTTP requests in
JavaScript.
INCOIS: https://www.incois.gov.in/ - The Indian National
Centre for Ocean Information Services
provides ocean data.

B.GREESHMA-238R1A6772
R.AVINASH-238R1A67B3
CH.VIVEK248R5A6706
L.HARSHA VARDHAN SAI-238R1A6798

You might also like