X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6209a9be78bd0a99f32e8351975beb67f2393bc7..d3e91a79ff3ab35006b233d39e059ffa406ba443:/test/controllers/geocoder_controller_test.rb diff --git a/test/controllers/geocoder_controller_test.rb b/test/controllers/geocoder_controller_test.rb index d29d77e8b..0d062cf42 100644 --- a/test/controllers/geocoder_controller_test.rb +++ b/test/controllers/geocoder_controller_test.rb @@ -1,5 +1,3 @@ -# coding: utf-8 - require "test_helper" require "geocoder_controller" @@ -426,6 +424,12 @@ class GeocoderControllerTest < ActionController::TestCase results_check :name => "Dinant Link Road, Broxbourne, Hertfordshire, East of England, England, EN11 8HX, United Kingdom", :lat => 51.7634883, :lon => -0.0088373, :type => "way", :id => 3489841, :zoom => 17 + + get :search_osm_nominatim_reverse, :xhr => true, + :params => { :lat => 13.7709, :lon => 100.50507, :zoom => 19 } + results_check :name => "MM Steak&Grill, ถนนศรีอยุธยา, บางขุนพรหม, กรุงเทพมหานคร, เขตดุสิต, กรุงเทพมหานคร, 10300, ประเทศไทย", + :lat => 13.7708691, :lon => 100.505073233221, + :type => "way", :id => 542901374, :zoom => 19 end end