Hygiene App

This is an Android application that queries the Food Standards Agency API. This API is owned and operated by the UK government and provides data regarding the hygiene rating of food-related businesses in the UK. There is a website that can be found at: https://www.food.gov.uk.

The application is written in Java using the Gradle build engine, Android SDK version 31. It utilises the Google Maps API.

Welcome Page

The entry page, which gives a description of the purpose of the application and displays the logo.

Search Page
The Hygiene API allows many forms of searching. Here, the user is given the choice between searching directly by name, or looking in a location determined by a postcode. If they are looking for establishments near to their location, GPS can be used to search nearby. It is limited to 1 mile radius and 100 entries due to limitations in Android and the API.

A toast will be shown to the user if their search returns nothing, or if there was any errors. On success, the results page will be shown.

List View
Once a user has submitted a query that returns some establishments, they are taken to the results page. This page displays the results in both list and map view. The list view is scrollable, and displays the business name, the address, the distance from current location (if applicable), and the hygiene rating. The hygiene rating is displayed using the same image that the business would put on display around the premises.

Map View
Alternatively, the user could view the results in map form. The TabView layout allows switching between these views using the tabs at the top of the page. Each result will be shown on the map using the latitude and longitude of the premises. The marker will display the rating, whilst the snippet gives the business name, shortened address, and postcode.