aboutsummaryrefslogtreecommitdiffstats
path: root/t/Mock/Nominatim.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-11-15 12:34:01 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-11-15 12:34:01 +0000
commit314f3be6ecc3ac7d33a6619a56ecfbab2f6ea494 (patch)
tree73ae42b00de6ade2acc6417f8e4779844150d1c5 /t/Mock/Nominatim.pm
parentd51c9bcd916a69b3a71d7d7bdb591c2afcfb5503 (diff)
parentc9dd01a66866dbd7ff867608edcd5c82a0b5e1db (diff)
Merge branch '1905-fix-broken-geocoder-results'
Diffstat (limited to 't/Mock/Nominatim.pm')
-rw-r--r--t/Mock/Nominatim.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/Mock/Nominatim.pm b/t/Mock/Nominatim.pm
index 5edbc9b30..6a61b423e 100644
--- a/t/Mock/Nominatim.pm
+++ b/t/Mock/Nominatim.pm
@@ -6,7 +6,7 @@ use Web::Simple;
has json => (
is => 'lazy',
default => sub {
- JSON->new->pretty->allow_blessed->convert_blessed;
+ JSON->new->utf8->pretty->allow_blessed->convert_blessed;
},
);
@@ -30,7 +30,7 @@ sub query {
my ($self, $q) = @_;
if ($q eq 'high street') {
return [
- {"osm_type"=>"way","osm_id"=>"4684282","lat"=>"55.9504009","lon"=>"-3.1858425","display_name"=>"High Street, Old Town, City of Edinburgh, Scotland, EH1 1SP, United Kingdom","class"=>"highway","type"=>"tertiary","importance"=>0.55892577838734},
+ {"osm_type"=>"way","osm_id"=>"4684282","lat"=>"55.9504009","lon"=>"-3.1858425","display_name"=>"High Street, Old Town, City of Ed\x{ed}nburgh, Scotland, EH1 1SP, United Kingdom","class"=>"highway","type"=>"tertiary","importance"=>0.55892577838734},
{"osm_type"=>"node","osm_id"=>"27424410","lat"=>"55.8596449","lon"=>"-4.240377","display_name"=>"High Street, Collegelands, Merchant City, Glasgow, Glasgow City, Scotland, G, United Kingdom","class"=>"railway","type"=>"station","importance"=>0.53074299592768}
];
}