private static string GetRaceId(IEvent e)
{
switch (e.Location)
{
case "Melbourne":
return "australia";
case "Kuala Lumpur":
return "malaysia";
case "Shanghai":
return "china";
case "Sakhir":
return "bahrain";
case "Catalunya":
return "spain";
case "Monte Carlo":
return "monaco";
case "Montreal":
return "canada";
case "Valencia, Spain":
return "europe";
case "Silverstone, England":
return "great-britain";
case "Hockenheim":
return "german";
case "Budapest":
return "hungary";
case "Spa-Francorchamps":
return "belguim";
case "Monza":
return "italy";
case "Singapore":
return "singapore";
case "Suzuka":
return "japan";
case "Yeongam":
return "korea";
case "New Delhi":
return "india";
case "Yas Marina":
return "abu-dhabi";
case "Austin":
return "usa";
case "Sao Paulo":
return "brazil";
default:
throw new FormatException("Failed to parse a location from '" + e.Location + "'.");
}
}