Java Project Document-4
Java Project Document-4
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
2 CERTIFICATE 04
3 ACKNOWLEDGEMENT 05
5 ABSTRACT 07
6 INTRODUCTION 07
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
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 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,
Frontend Development
Additional Skills
Expected Result: The app will display suitability, temperature, and wind
speed data for the given coordinates.
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:
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.
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
B.GREESHMA-238R1A6772
R.AVINASH-238R1A67B3
CH.VIVEK248R5A6706
L.HARSHA VARDHAN SAI-238R1A6798