GeoRSS aggregator and Layar augmented reality server
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

17 行
337 B

  1. module PostsHelper
  2. def post_to_poi(post)
  3. # http://layar.com/documentation/browser/api/getpois-response/
  4. {
  5. :id => post._id,
  6. :anchor => {
  7. :geolocation => {
  8. :lat => post.loc['lat'],
  9. :lon => post.loc['lng'],
  10. :alt => 0
  11. }
  12. },
  13. :title => post.title
  14. }
  15. end
  16. end