The crime ranking by city is based on a continuously updated index, incorporating data up to 36 months old and calculated twice a year. Cities are ranked on a scale from "very low" to "very high" crime levels, with safety being the inverse, where a high safety index indicates a safer city.