mapzen is closing at beginning of Feb 2018, so we need to replace this in maps_controller and layers_controller in the geosearch method. Might not be used much, though.
uri = URI('https://search.mapzen.com/v1/search')
query_params = { :text => params[:place], :api_key => api_key, :size => 2, :sources => "wof,geonames", :layers => "coarse"}
if !APP_CONFIG["geocode_country"].blank?
query_params = query_params.merge({"boundary.country" => APP_CONFIG["geocode_country"]})
end
mapzen is closing at beginning of Feb 2018, so we need to replace this in maps_controller and layers_controller in the geosearch method. Might not be used much, though.