开发者

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'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜