GeoRSS aggregator and Layar augmented reality server
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

30 строки
696 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. :text => {
  14. :title => post.title,
  15. :description => post.summary,
  16. :footnote => "From #{post.feed.title}"
  17. },
  18. :actions => [
  19. {
  20. :label => "Read more...",
  21. :uri => post.url,
  22. :contentType => "text/html",
  23. :method => "GET",
  24. :activityType => 1
  25. }
  26. ]
  27. }
  28. end
  29. end