Looking for an example for a simplegeo API call in Ruby
After authenticating with simplegeo, I am simply trying to perform this:
SimpleGeo::C开发者_JS百科lient.get_context(37.772445,-122.405913)
Turn the result into @variable
and display the @variable
on my "view" page.
Any suggestions? Thanks!
I'm working on a gem right now called SimpleGeo-Rails. It should make the whole process of working with the SimpleGeo Places a lot more rails-like. Just add the following to your Gemfile and then checkout the readme.
gem 'simplegeo-rails', :git => 'https://github.com/mgadda/simplegeo-rails.git'
精彩评论