Software consulting and development in and around Oshawa, Durham Region and the Greater Toronto Area of Ontario
 

Ruby Geonames / Wikipedia / Google Maps API

An example web 2.0 style mashup of

north
east
south
west

Example Rails Controller callling the geonames Ruby API

class AjaxGeonamesController < ApplicationController
  def get_wikipedia_in_bounds
    n = params[:n]
    e = params[:e]
    s = params[:s]
    w = params[:w]
    
    @results = CallCache.call( 'Geonames::WebService.findBoundingBoxWikipedia', 
        :pars => [ :north => n, :east => e, :south => s, :west => w ] )

    render :layout => false

  end
end