package FixMyStreet::Cobrand::Oxfordshire; use base 'FixMyStreet::Cobrand::UKCouncils'; use strict; use warnings; sub council_id { return 2237; } sub council_area { return 'Oxfordshire'; } sub council_name { return 'Oxfordshire County Council'; } sub council_url { return 'oxfordshire'; } sub is_two_tier { return 1; } sub base_url { return FixMyStreet->config('BASE_URL') if FixMyStreet->config('STAGING_SITE'); return 'http://fixmystreet.oxfordshire.gov.uk'; } # Different to councils parent due to this being a two-tier council. If we get # more, this can be genericised in the parent. sub problems_clause { return { bodies_str => { like => '%2237%' } }; } sub path_to_web_templates { my $self = shift; return [ FixMyStreet->path_to( 'templates/web', $self->moniker )->stringify, FixMyStreet->path_to( 'templates/web/fixmystreet' )->stringify ]; } sub enter_postcode_text { my ($self) = @_; return 'Enter an Oxfordshire postcode, or street name and area'; } sub disambiguate_location { my $self = shift; my $string = shift; return { %{ $self->SUPER::disambiguate_location() }, centre => '51.765765,-1.322324', span => '0.154963,0.24347', # NB span is not correct bounds => [ 51.459413, -1.719500, 52.168471, -0.870066 ], }; } sub example_places { return ( 'OX20 1SZ', 'Park St, Woodstock' ); } sub default_show_name { 0 } 1;