UK Food Hygiene Rating System

From OpenStreetMap Wiki
(Redirected from Food Hygiene Rating System)
Jump to: navigation, search
Linking Food Hygiene Open Data to OSM highways

The UK Food Hygiene Rating System data contains information for thousands of business across the United Kingdom. The system is called the Food Hygiene Rating Scheme (FHRS) in England, Northern Ireland, and Wales and the Food Hygiene Information Scheme (FHIS) in Scotland.


Data from the UK Food Safety Agency's Food Hygiene Rating Scheme are licensed under the Open Government License. This is broadly equivalent to Creative Commons Attribution.

In licensing terms it seems this is a dataset we can make use of, and they have already been listed as credited Contributors (although the license is not the only consideration. Due to #Location Inaccuracy problems described below, this is not a candidate dataset for direct import into OpenStreetMap)

Comparison tool

User:Gregrs has developed a tool for comparing Food Hygiene Rating Scheme (FHRS) and OSM data and finding possible matches between it. The code is freely available on GitHub

Autumn Quarterly Project 2016

Using FHRS data to improve OpenStreetMap data is the focus of the UK_2016_Q4_Project:_Food_Hygiene_Ratings.


Example data

      <BusinessName>Starbucks Coffee Company</BusinessName>
      <AddressLine1>Unit 6</AddressLine1>
      <AddressLine2>Block 4</AddressLine2>
      <AddressLine3>Jubilee Street</AddressLine3>
      <PostCode>BN1 1GE</PostCode>
      <LocalAuthorityName>Brighton and Hove</LocalAuthorityName>

This is equivalent to node:1236329881.

From this data, the following can be merged into OpenStreetMap:

  • BusinessName → name
  • BusinessType can be used to infer amenity or shopping or tourism or a number of other values.
  • AddressLine1 → addr:housenumber, addr:street
  • AddressLine2 → addr:city
  • PostCode → addr:postcode
  • LocalAuthorityBusinessID → id

The following tags are currently in use for FHRS specific data:

Some establishments also have tags for their scores in individual categories:

The key fhrs:inspectiondate is also used as an alternative to fhrs:rating_date, although the latter is more widely used.

The Geocode property can be used as a way to distinguish between similarly named businesses (chains with a lot of locations like McDonalds, Starbucks etc.) and to add points of interest that do not exist.

Location Inaccuracy

It looks like the Latitude and Longitude coordinates of each place are the approximate location of the place based on postcode. As an example, all these places have the same coordinates (-0.12234400000000 51.58105100000000) and postcode (N8 8PT), but in fact they are scattered around the street:

Belash	Restaurant/Cafe/Canteen	5	N8 8PT	-0.12234400000000	51.58105100000000
Bistro Aix	Restaurant/Cafe/Canteen	4	N8 8PT	-0.12234400000000	51.58105100000000
Broadway Fish Bar	Restaurant/Cafe/Canteen	2	N8 8PT	-0.12234400000000	51.58105100000000
Dixy Chicken	Restaurant/Cafe/Canteen	4	N8 8PT	-0.12234400000000	51.58105100000000
Honeycomb Cafe	Retailers - other	3	N8 8PT	-0.12234400000000	51.58105100000000
Meghna Restaurant	Restaurant/Cafe/Canteen	1	N8 8PT	-0.12234400000000	51.58105100000000
Melange Restaurants Ltd	Restaurant/Cafe/Canteen	3	N8 8PT	-0.12234400000000	51.58105100000000
Nakama	Restaurant/Cafe/Canteen	1	N8 8PT	-0.12234400000000	51.58105100000000
Papaya	Restaurant/Cafe/Canteen	4	N8 8PT	-0.12234400000000	51.58105100000000
Pizza Hut Delivery	Takeaway/sandwich shop	5	N8 8PT	-0.12234400000000	51.58105100000000
Royal News	Retailers - other	4	N8 8PT	-0.12234400000000	51.58105100000000
The Henry Reader	Pub/bar/nightclub	3	N8 8PT	-0.12234400000000	51.58105100000000
Virgin Active	Restaurant/Cafe/Canteen	4	N8 8PT	-0.12234400000000	51.58105100000000

This suggests that the location data might be sourced by a postcode lookup and as such is slightly worrying license-wise. It might be an idea to avoid using the coordinate information directly.

Welsh language

For local authorities in Wales, the data is provided in two XML files, containing both English and Welsh place text strings.

Helper script

User:robert has posted his fhrs2osm script for converting a FHRS XML file into a .osm file suitable for loading into JOSM. The intention is for this to be loaded as a separate layer and for very selective merging to be done through copy/pasting of tags, not for the resulting .osm file to be uploaded.