UK Food Hygiene Rating System
The UK Food Hygiene Rating System data contains information for thousands of businesses 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.
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; because of #Location Inaccuracy problems described below, this is not a candidate dataset for direct import into OpenStreetMap).
User:Gregrs has developed a tool for comparing Food Hygiene Rating Scheme (FHRS) and OSM data and finding possible matches between it, with an emphasis on the fhrs:id=* and addr:postcode=* tags. It is also possible to download GPX files to assist in surveying. The code is freely available on GitHub
UK Quarterly Projects
<EstablishmentDetail> <FHRSID>207603</FHRSID> <LocalAuthorityBusinessID>2006/00077/COMM</LocalAuthorityBusinessID> <BusinessName>Starbucks Coffee Company</BusinessName> <BusinessType>Restaurant/Cafe/Canteen</BusinessType> <BusinessTypeID>1</BusinessTypeID> <AddressLine1>Unit 6</AddressLine1> <AddressLine2>Block 4</AddressLine2> <AddressLine3>Jubilee Street</AddressLine3> <AddressLine4>Brighton</AddressLine4> <PostCode>BN1 1GE</PostCode> <RatingValue>5</RatingValue> <RatingKey>fhrs_5_en-GB</RatingKey> <RatingDate>2011-08-11</RatingDate> <LocalAuthorityCode>875</LocalAuthorityCode> <LocalAuthorityName>Brighton and Hove</LocalAuthorityName> <LocalAuthorityWebSite>http://www.brighton-hove.gov.uk/foodsafety</LocalAuthorityWebSite> <LocalAuthorityEmailAddress>firstname.lastname@example.org</LocalAuthorityEmailAddress> <Scores> <Hygiene>0</Hygiene> <Structural>5</Structural> <ConfidenceInManagement>5</ConfidenceInManagement> <Scores/> <SchemeType>FHRS</SchemeType> <Geocode> <Longitude>50.82486600000000</Longitude> <Latitude>-0.13894300000000</Latitude> </Geocode> </EstablishmentDetail>
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.
- AddressLine* → addr:housenumber, addr:street, addr:city
- PostCode → addr:postcode
The following tags are currently in use for FHRS specific data:
- FHRSID → fhrs:id=*
- LocalAuthorityBusinessID → fhrs:local_authority_id=*
- LocalAuthorityName → fhrs:authority=*
It is not recommended to store ephemeral data relating to ratings in OSM as this can be fetched using the FHRS API if the fhrs:id=* tag is set, but the following tags have been used by some mappers:
- RatingValue → fhrs:rating=*
- RatingDate → fhrs:rating_date=*
- Hygiene → fhrs:hygiene=*
- Structural → fhrs:structural=*
- ConfidenceInManagement → fhrs:confidence_management=*
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.
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.
Multiple food hygiene ratings for a location
A recent trend for pubs is to put their food business out to a third party. This means that the Food Standards Agency has records for:
- the pub "wet sales"
- the kitchen franchise
We even found a pub that has a different franchisee for Sunday lunches, so has three fhrs:ids.
As OSM is a map of ground truth we wouldn't create an extra location for the kitchen. The pub serves the food, we can't distinguish between their franchise arrangements. The multiple fhrs:ids should be an attribute on the pub point or polygon, entered with a semi-colon separator.
It's not so different from the church hall which has it's own fhrs entry, but separate ones for the playgroup & the Wednesday OAP lunch club; or the school with entries for breakfast & after-school clubs.
For local authorities in Wales, the data is provided in two XML files, containing both English and Welsh place text strings.
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.