aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode.pm
Commit message (Collapse)AuthorAgeLines
* Switch to JSON::MaybeXS, remove JSON::XS.Matthew Somerville2016-01-22-0/+1
| | | | | | Travis has Cpanel::JSON::XS preinstalled, which means that the build would fail there, as JSON::MaybeXS would try and upgrade JSON::XS to version 3 which the snapshot did not contain.
* Merge branch 'issues/fms-mobile/190'Matthew Somerville2015-02-13-0/+6
|\ | | | | | | | | Conflicts: perllib/FixMyStreet/Geocode/Google.pm
| * Make sure all co-ordinates are stringified.Matthew Somerville2015-02-13-0/+6
| | | | | | | | | | | | | | 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.
* | Expire cached geolocations after a week.Matthew Somerville2015-02-13-0/+26
|/ | | | | And refactor geoloction caching code into one function (except for Zurich which has its own SOAP based system).
* Use env in shebang lines, and remove unneeded onesMatthew Somerville2015-01-19-2/+0
|
* Let cobrand override geocoderHakim Cassimally2014-09-16-1/+1
| | | | | Fixing issues with Bing geocoding for East Sussex, for example "Church Street".
* Add some Zurich banner tests.Matthew Somerville2013-01-23-1/+1
|
* Add Zurich geocoder (and allow geocoder choice to be picked in config).Matthew Somerville2012-12-04-7/+17
|
* add partial postcode for bromley high street lookup to help bingStruan Donald2012-08-09-1/+1
|
* Remove any Northern Ireland specific code.Matthew Somerville2012-07-20-3/+2
|
* Add Nominatim-based geocoding service (fixes #183).Matthew Somerville2012-07-13-2/+5
|
* Use Google API when no API key is set.Petter Reinholdtsen2011-09-08-3/+2
|
* die with a slightly useful message if we have no geocoding provider availableStruan Donald2011-07-27-0/+1
|
* Factor out postcode lookups into cobrands, and string lookups into separate ↵Matthew Somerville2011-07-12-180/+13
| | | | packages.
* Skip non-UK results in Bing geocoder, remove some geocode tests.Matthew Somerville2011-06-29-1/+1
|
* Bing geocoder.Matthew Somerville2011-06-29-56/+103
|
* Centralise UK location check to catch edge cases.Matthew Somerville2011-06-17-12/+0
|
* Move country to cobrand rather than config option.Matthew Somerville2011-06-14-10/+10
|
* Removal of old Cobrand.pm and last .Matthew Somerville2011-06-07-1/+0
|
* Final bits of Page.pm gone.Matthew Somerville2011-06-07-1/+0
|
* Get rid of some more fake_q etc.Matthew Somerville2011-06-06-37/+27
|
* google maps don't seem to pay as much attention to region hinting as they ↵Struan Donald2011-05-24-2/+14
| | | | | once did so make sure we add UK on to the end. also update tests to take into account changed results because of this.
* Handle NO postcodes via mapit.Matthew Somerville2011-03-05-0/+8
|
* Factor out address checking, so that single results are checked too (e.g. ↵Matthew Somerville2011-02-24-21/+25
| | | | for 0029 in Norway, returning SA).
* Remove unneeded decodes, everything is already decoded by then, and fix for ↵Matthew Somerville2011-02-24-1/+0
| | | | passing decoded strings to MaPit.
* Couple of URI escaping fixes, plus cope with different versions of LWP ↵Matthew Somerville2011-02-22-0/+1
| | | | returning content/decoded_content.
* Hopefully mostly fix charset issue (FastCGI was very unhelpful here, it ↵Matthew Somerville2011-02-17-0/+1
| | | | turns out it auto-UTF-8 encodes sometimes without telling you.
* Various encoding fixing.Matthew Somerville2011-02-16-2/+4
|
* Only do lat/lon->E/N check if country is GB.Matthew Somerville2011-02-14-7/+9
|
* Footer for Norway.Matthew Somerville2011-02-12-0/+1
|
* Norway place lookup.Matthew Somerville2011-02-11-9/+13
|
* Helper function for all latlon to OSGB36 calls.Matthew Somerville2011-02-11-4/+2
|
* More EN locales.Matthew Somerville2011-02-11-1/+4
|
* Put back UK-only code for atomic nature of E/N -> lat/lon conversion, module ↵Matthew Somerville2011-02-10-0/+7
| | | | has other UK-only code in it still and it causes error without.
* Lots of conversions - code now in a broken stateEdmund von der Burg2011-02-08-22/+14
|
* Add note about cache dir to install stepsEdmund von der Burg2011-02-07-0/+2
| | | | Create geo cache dir if it is missing
* Have FixMyStreet::Geocode only deal in real co-ordinates.Matthew Somerville2010-11-23-20/+8
|
* Factor out geocoding functions.Matthew Somerville2010-11-23-0/+168