The community toilets app aims to provide a platform for users to find nearby community toilet facilities within the Bristol area. The app utilizes data obtained from the Bristol Open Data API, which includes information about toilet locations, name of the toilets, toilets with changing places, toilets based on wards, family toilets, toilets with baby change. It involves building a web application using HTML, CSS, JavaScript.
</ol><li>Baby.html: This file contains information or features related to baby change facilities in the community toilets app. </li><li>type.html: This file contains information or features related to filtering wards with community toilets </li><li>style2.css: This CSS file provides styling for the HTML files in the /docs folder, including the home page, search page, map page, etc. </li><li>search.html: This HTML file includes a search functionality for finding specific information or facilities related to community toilets. </li><li>script.js: This JavaScript file provides interactivity and functionality to the HTML pages, such as handling user input, making API calls, or updating the DOM dynamically. </li><li>map.html: This HTML file displays a map interface related to the website’s content,showing the locations of toilets. </li><li>homePage.html: This file is the homepage of the website, providing an overview or introduction to the community toilets app. </li><li>family.html: This HTML file contains information or features specific to family-friendly facilities. </li><li>distance.html: This file contains features or functionality related to calculating distances or finding nearby facilities. </li><li>changing.html: This HTML file contains information or features related to changing places facilities. </li><li>Index2.html: This file is an alternate or additional version of the homepage, containing variations or updates to the content.</li><li>test.html: for testing the script file</li><ol>
6 tests completed in 17 milliseconds, with 0 failed, 0 skipped, and 0 todo. 7 assertions of 7 passed, 0 failed.
The software architecture consists of the following major components:
-Client: Represents the frontend HTML, CSS, and JavaScript responsible for user interaction. -Bristol Open Data API: Provides data about toilet locations and facilities. -Browser: Renders the HTML, CSS, and JavaScript to the user’s browser.
Query 1: Get All Toilet Locations
Endpoint: /api/toilets Description: Retrieves a list of all toilet locations within the Bristol area. Parameters: None Query 2: Get Toilet Details
Endpoint: /api/toilets/:name Description: Retrieves detailed information about a specific toilet location. Parameters: id (Toilet name)