aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Utils.pm
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-08 14:36:01 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-08 14:36:01 +0100
commit6b887cac626dfa0802051cc898a75c36e5c55b4f (patch)
tree60ae7a03624bdfaa839023a528e8c9f16093f65c /perllib/Utils.pm
parent6f8a067e57fc6dcd7cf8ff3184af12d37ad85810 (diff)
parentcf984198252ed545d924985ddeadaae506087ea6 (diff)
Merge branch 'master' into migrate_to_catalyst
Diffstat (limited to 'perllib/Utils.pm')
-rw-r--r--perllib/Utils.pm29
1 files changed, 29 insertions, 0 deletions
diff --git a/perllib/Utils.pm b/perllib/Utils.pm
index 21994d20b..c16a02cd4 100644
--- a/perllib/Utils.pm
+++ b/perllib/Utils.pm
@@ -107,4 +107,33 @@ sub truncate_coordinate {
return $out;
}
+sub london_categories {
+ return {
+ 'Abandoned vehicle' => 'AbandonedVehicle',
+ 'Car parking' => 'Parking',
+ 'Dangerous structure' => 'DangerousStructure',
+ 'Dead animal' => 'DeadAnimal',
+ 'Dumped cylinder' => 'DumpedCylinder',
+ 'Dumped rubbish' => 'DumpedRubbish',
+ 'Flyposting' => 'FlyPosting',
+ 'Graffiti' => 'Graffiti',
+ 'Litter bin' => 'LitterBin',
+ 'Public toilet' => 'PublicToilet',
+ 'Refuse collection' => 'RefuseCollection',
+ 'Road or pavement defect' => 'Road',
+ 'Road or pavement obstruction' => 'Obstruction',
+ 'Skip problem' => 'Skip',
+ 'Street cleaning' => 'StreetCleaning',
+ 'Street drainage' => 'StreetDrainage',
+ 'Street furniture' => 'StreetFurniture',
+ 'Street needs gritting' => 'StreetGritting',
+ 'Street lighting' => 'StreetLighting',
+ 'Street sign' => 'StreetSign',
+ 'Traffic light' => 'TrafficLight',
+ 'Tree (dangerous)' => 'DangerousTree',
+ 'Tree (fallen branches)' => 'FallenTree',
+ 'Untaxed vehicle' => 'UntaxedVehicle',
+ };
+}
+
1;