Monday, May 10, 2010

Panoramio Widget API - Display photos from Panoramio on your own website

We are happy to announce the launch of the new Panoramio Widget API. With this new feature that we are just releasing, it will be easier than ever to show your pictures of places to the world.
The Panoramio Widget API is a JavaScript library that provides easy-to-use graphical UI elements and search capabilities so that you can show Panoramio photos on your web site. In addition, we provide ready-made HTML templates that you can embed in a web site using iframe tags so you can take advantage of the Widget API without needing to write any JavaScript.
There are many places where Panoramio pictures are displayed such as Google Earth, Google Maps, Google Search, Place Page, etc. With Panoramio Widget API you can now display the photos from Panoramio on your blog or website. A great example of this is the following Slideshow with Panoramio photos containing the tag “sand”:

Another good implementation is the photo list that would display something like:


Please let us know what you think about it by leaving your comment on this blog post or by discussing in the Panoramio forum.

19 comments:

  1. The slideshow is rather buggy

    Foe example, a reasonable expectation is that you can search for tag combinations. However, a request such as

    http://www.panoramio.com/wapi/template/slideshow.html?tag=red,blue

    simply causes the slideshow to go into an infinite retrieval loop, since there are no matches for "red,blue" as a tag, at keeps trying to fetch non-existent results.
    ReplyDelete
  2. @anon: Multitag is not a supported option at this moment, so you can only use 1 tag per Widget.
    ReplyDelete
  3. The bug I was trying to report was that when you request something for which there are no results, the slideshow gets stuck in an infinite loop of requests.

    (The ability to request multiple tags, and also to request negative tags, is highly desirable, but I immediately realized that you don't support it. It's a shame that for whatever reason Google don't seem able to provide good search APIs).
    ReplyDelete
  4. Dear Gerard Sanz, that is a great news for who has a blog or a website.

    I hope that multitags will be implemented and I'd like to know if it is possible to request an user and a tag as options.

    The widget API are really wonderful.

    Best Regards from Italy

    Fabrizio
    ReplyDelete
  5. Good news! I'll test it ASAP.
    Same Frabizio question, user tag don't works for me using the iframes. Works both ids using a JS request, someone has tried the it?
    ReplyDelete
  6. Roger Trias SanzMay 12, 2010 02:10 AM
    Hi Fabrizio,
    Thanks for your comment. it is currently not possible to request a user and tag at the same time, but this is a good idea that would allow for example to show only the photos of your last vacations. We'll keep this in mind.
    ReplyDelete
  7. Sorry, the reply is posting in the API page...
    "Request- You cannot use the set, tag, user and ids options at the same time. If you don't use any options, the default is 'set': panoramio.PhotoSet.PUBLIC. If you specify invalid options, the Widget API will raise an exception of class panoramio.InvalidPhotoRequestError when you create a widget." ids are a bit hard for a lot of photos ("Selects a particular set of photos. For each photo, you must give its numerical photo id, and the numerical user id of its owner. The photos will be shown in the same order as they are given in this option") but is an option.
    ReplyDelete
  8. Why not user and tag at the sametime?
    I would like to put in a specific country web site

    user=me and tag= that_country
    ReplyDelete
  9. Hi Roger, thanks a lot for your answer and for keeping my request in mind.

    I have implemented in my blog the html widget and I have also used the slideshow code in a single post and in a static page.
    ReplyDelete
  10. I think this is a good idea... this feature was missing in Panoramio, so I created a similar in my site. I called it Panoramio Badge and everyone can use it at
    http://www.onyourglobe.com/badge.asp

    ...but I admit that yours is better ;D
    Well done guys !!!
    ReplyDelete
  11. I'm wondering if I could use this API on my website while meeting Panoramios TOS if I had adsense ads and such on my site?
    ReplyDelete
  12. jlgomezlinaresMay 28, 2010 04:04 AM
    He obsevado que cuando seleccionas la opción etiquetas solo te muestra las fotos mas populares de esa etiqueta, ¿no podria ser que mostrase las fotos de un usuario concreto y con una determinada etiqueta?

    Saludos
    ReplyDelete
  13. ©jlgomezlinaresMay 28, 2010 05:37 AM
    Cuando se selecciona la opción etiquetas las fotos que se muestran son solo las mas populares lo que da origen a que en ciertas etiquetas no muestre ninguna foto porque no hay ninguna que tenga esa condicción, seria mas util que las mostrase todas las de esa etiqueta o en su defecto que se fueran las de un usuario concreto.
    Saludos y gracias por incluir esta utilidad.
    ReplyDelete
  14. Yarışma fotoğraflarını neden bir ay sonra göremiyoruz?
    Ataman ayvaz
    ReplyDelete
  15. [...] Since we launched the Widget API we have received a lot of positive feedback to improve it. One of the biggest requests was the possibility to combine a UserID and Tag in the same widget to allow users to explain a story using a widget. I am happy to announce that this is live! [...]
    ReplyDelete
  16. hi,
    I try to use my panoramio photos in the colorbox application. For this, I need url of photos.
    I found this url format :http://mw2.google.com/mw-panoramio/photos/medium/36610968.jpg
    and this link works successfuly.
    My questions is : I want to show photos original size or 1024 size instead of medium size. When I try following url format, it does not work.
    http://mw2.google.com/mw-panoramio/photos/original/36610968.jpg
    Is there any suggestion or help for me?
    Thanks at advance
    ReplyDelete
  17. I just add it to my site and I hadn't any problems, it looks cool, thanks for this great new tool.
    ReplyDelete
  18. ooops, I made a mistake in the website url, can anybody erase the previous comment please?.
    I just add it to my site and I hadn’t any problems, it looks cool, thanks for this great new tool.
    ReplyDelete
  19. Hi, i do not know a lot about computer programming so i can use html iframe but not API tools. Any ideas how to use long and lat instead of TAG in slideshow iframe? Tanks in advance
    ReplyDelete