aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Location.pm
Commit message (Collapse)AuthorAgeLines
* Add inspector report detail viewDave Arter2016-09-06-0/+2
| | | | | | | | | | | | | Users with the `report_inspect` permission can click a new 'inspect' button on a report page to input more detailed problem information into a new form that appears in a column alongside the report detail. - Inspector data is stored in problem's 'extra' field - Report category/state can be edited - Location can be changed by dragging the pin or HTML5 geolocation (Factored out Zurich admin pin drag into own function) For mysociety/fixmystreetforcouncils#22
* [fixmystreet.com] Move country lookup client side.Matthew Somerville2016-03-31-16/+0
| | | | | There's no need for the IP->country lookup, only used in JavaScript to display a banner, to require a call to the FixMyStreet server.
* Don't double-decode geocoded addresses.Matthew Somerville2016-03-15-1/+2
| | | | | | | | | Perl 5.20 introduced a version of Encode that errors on decoding already decoded content (rather than returning the same string). Whilst this can be taken as a bug in our code (although the decoding exists because some versions of FastCGI silently UTF-8 encode the content), in the changelog for Perl the only reference to this change is the line: "Encode has been upgraded from version 2.49 to 2.60.".
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-4/+4
| | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref.
* Make sure all co-ordinates are stringified.Matthew Somerville2015-02-13-8/+10
| | | | | | | This includes MapIt postcode lookups, geocoding, query parameters, tile clicks. Stringifying truncates them to six decimal places, which means we no longer need any "short" versions anywhere, and the JSON response will always uses a decimal point regardless of locale.
* Display a banner to non UK FixMyStreet visitorsStruan Donald2014-07-03-0/+16
| | | | | | only on FMS and only if from outside the uk Fixes #571
* Use flags to indicate type of location errorStruan Donald2014-04-08-0/+1
| | | | | | | This makes it a bit easier to override the message in templates which makes it a bit easier for cobrands. Leaves the default error message in location_error stash key which should prevent any existing logic breaking.
* Redirect to front page if nothing provided.Matthew Somerville2013-02-20-1/+3
|
* Add Zurich geocoder (and allow geocoder choice to be picked in config).Matthew Somerville2012-12-04-0/+1
|
* Only have grid refs of at least 4 digits.Matthew Somerville2012-11-28-1/+1
|
* Allow lat,lon and OS grid references in search box, fixes #142.Matthew Somerville2012-10-12-0/+43
|
* Remove any Northern Ireland specific code.Matthew Somerville2012-07-20-1/+1
|
* Store lat/lon from multiple results and use that to prevent infinite loop on ↵Matthew Somerville2011-08-09-6/+6
| | | | e.g. 'Clapham'.
* Centralise UK location check to catch edge cases.Matthew Somerville2011-06-17-9/+26
|
* Get rid of some more fake_q etc.Matthew Somerville2011-06-06-1/+1
|
* Migrate RSS feeds handling.Matthew Somerville2011-05-19-2/+2
|
* add use EncodeStruan Donald2011-05-05-0/+2
|
* create and use location controllerStruan Donald2011-05-05-0/+111