GeoRSS aggregator and Layar augmented reality server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
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