- ##
- # Test the geonames forward search
- def test_search_geonames
- with_http_stubs "geonames" do
- get geocoder_search_geonames_path(:query => "Hoddesdon", :zoom => 10, :minlon => -0.559, :minlat => 51.217,
- :maxlon => 0.836, :maxlat => 51.766), :xhr => true
- results_check :name => "Hoddesdon", :lat => 51.76148, :lon => -0.01144
-
- get geocoder_search_geonames_path(:query => "Broxbourne", :zoom => 10,
- :minlon => -0.559, :minlat => 51.217,
- :maxlon => 0.836, :maxlat => 51.766), :xhr => true
- results_check({ :name => "Broxbourne", :lat => 51.74712, :lon => -0.01923 },
- { :name => "Broxbourne District", :lat => 51.73026, :lon => -0.04821 },
- { :name => "Cheshunt", :lat => 51.70791, :lon => -0.03739 },
- { :name => "Hoddesdon", :lat => 51.76148, :lon => -0.01144 },
- { :name => "Waltham Cross", :lat => 51.68905, :lon => -0.0333 },
- { :name => "Goffs Oak", :lat => 51.71015, :lon => -0.0872 },
- { :name => "Wormley", :lat => 51.7324, :lon => -0.0242 },
- { :name => "Broxbourne", :lat => -27.50314, :lon => 151.378 },
- { :name => "Lee Valley White Water Centre", :lat => 51.68814, :lon => -0.01682 },
- { :name => "Cheshunt Railway Station", :lat => 51.703, :lon => -0.024 },
- { :name => "Theobalds Grove Railway Station", :lat => 51.692, :lon => -0.035 },
- { :name => "Waltham Cross Railway Station", :lat => 51.685, :lon => -0.027 },
- { :name => "Rye House Station", :lat => 51.76938, :lon => 0.00562 },
- { :name => "Broxbourne Station", :lat => 51.74697, :lon => -0.01105 },
- { :name => "Broxbornebury Park", :lat => 51.75252, :lon => -0.03839 },
- { :name => "Marriott Cheshunt", :lat => 51.7208, :lon => -0.0324 },
- { :name => "Cheshunt Community Hospital", :lat => 51.68396, :lon => -0.03951 })
- end
- end
-