Come up with a formula for ratings. See the forum board post by Mike for a start. You will have to decide the exact weights, and should implement the weights in such a way that it's easy to change them. Don't worry about their exact values, as you can come back and tweak them later.
Implement rating: String in Location, which returns a letter grade (eg, A+, B-, etc) according to the previously mentioned formula. Return "N/A" if a rating cannot be calculated (ie, there's somehow no inspections).
Modify the display location page to call this function where there's currently a hard coded "N/A". The page should check the rating an apply a different CSS style to each letter (so "A+", "A", and "A-" all would have the same CSS rule applied to them). This is for the purpose of applying colors (and possibly other styles?). Choose appropriate colors (green = A, red = F, etc).
Create a simple, static view describing the rating formula. Be sure to mention the weights (should use the values directly, so that there's only one place to change the weights) and shortfalls of the ratings in general (eg, the fact that our violations are binary pass-fail values and don't tell us the severity of the violation). Also mention a general disclaimer that the values don't necessarily represent the current situation at the location (may be outdated).
Add a link to open that page next to the rating (see the original mockup).
rating: String
inLocation
, which returns a letter grade (eg, A+, B-, etc) according to the previously mentioned formula. Return "N/A" if a rating cannot be calculated (ie, there's somehow no inspections).