idea: map your books?

DiscussãoLibraryThing API Development

Aderi ao LibraryThing para poder publicar.

idea: map your books?

Este tópico está presentemente marcado como "adormecido"—a última mensagem tem mais de 90 dias. Pode acordar o tópico publicando uma resposta.

1rsterling
Ago 19, 2009, 8:04 pm

I'm a complete novice with APIs, but I wanted to throw an idea out here to see if anyone who understands APIs better could think of a way to make it workable.

It would be really cool to have a widget (ideally eventually one that could be put on LT profiles, but external would be good too) that would map your catalog, based on CK data for your books. I was thinking of something that would highlight countries and/or cities, regions, etc. (scale, debatable) of the setting for your books, based on "important places" - something where the result was similar to those "countries I've visited" memes. (The same idea could be extended to author nationalities, etc.)

I noticed on an old thread that MMcM had tried to do a google map of locations for a single book, though I wasn't sure from the thread whether it had worked or not.
http://www.librarything.fr/topic/42800#723722
I was thinking of something on a larger scale, for a whole library. Those of you with some experience with LT APIs and maybe Google Maps APIs: is something like this idea possible?

2atlefren
Jun 15, 2010, 4:41 pm

I have actually tried this, but ran across a problem:

in order to get the CK-data for each of the books in my library i have to make about 200 rest-requests to the CK API, which would break the API-limit.

So what I did insted was prefixing some of my tags with "place:" and then used the tag to locate the book.

Then it is just a question of finding a position for the placename, I used geonames.org, which provides a free api for geolocation (placename to coordinates)

An eary prototype using Openlayers, geonames and my own lt json api to php parser can be found at http://kart.atlefren.net/bookmap.php

3geitebukkeskjegg
Jun 16, 2010, 3:53 am

Hmm. We've got IMDB links in CK Related Movies. Could we have Google Map links in CK Important Places?

That would actually be useful.

4atlefren
Jul 20, 2010, 2:51 pm

Nice idea. Guess it could work if it is made possible to enter coodinates for each placename (kinda like Wikipedia geotagging articles)