About Bookmarks Contact Library Map Photos Search Talks
August
18
2006
12:32 pm
Tags:
Post Meta :

I have created a Library 2.0 mashup (for TALIS competition) using data from http://visityourlibrary.net, and thealbertalibrary.ab.ca using the Google Maps API. I call this mashup LibraryMapApp. It is a javascript library that makes it easier to search for and display libraries using the google maps API. I have also created a working demostration of LibraryMapApp using data from the websites mentioned above.
The application can be viewed at http://paranoidagnostic.net/map/

This application will allow you to search for libraries of all sorts in Alberta, Canada. The data was geocoded using Google Maps. Unfortunately the data I got form visityourlibrary.net was not that accurate. I have subsequently created a geocoding helper which can be seen at http://paranoidagnostic.net/map/geocode.html. The Geocoder Helper, allows you to search for an address, enter in extra information about the location (name, homepage etc.), and finally you can zoom and get fine positioning of the latitude and longitude.

The data from the geocoder helper has not yet made it into my “Find a Library in Alberta” demonstration. However, there are a team of intreprid librarians working on that right now (thanks Anne!).

The source code for all of this is available under the GPL 2.0 license and can be downloaded from http://paranoidagnostic.net/map/libmapapp.zip

Forgive, the scanty details right now (tired, need sleep). The basic usage of LibraryMapApp is like this:

  1. Create an HTML file with three divs: one for a map, one for map details, one for a search box
  2. In the head of the script include your Google Map API script with your API key
  3. In the head of the script include ablibapp.js
  4. Write a function called “load()” that will create a new LibraryMapApp and load data for the libraries you wish to search and display. In my case I just put the all in a javascript file.
  5. Library data is just a JSON object with the following properities (at a minimum)
  1. id
  2. name
  3. address
  4. phone
  5. homepage
  6. lat (latitude… the included geocoder helper can help get this)
  7. lng (longitude)

This first version needs much improvement. I have data for each library that identifies its type (public, academic, special, government, health etc.) and its “zone” (what region of the province it is from). The next version of LibraryMapApp will allow libraries to be grouped together, each with a different icon color and the ability to search within groups or to search all groups but have them displayed differently (so public libraries might show up with green markers, and academic with blue).

The API also needs to be reworked from the ground up to make it more re-usable. This is a good first step, but it counts more as an exercise than real API.

Comments
August
20
2006
12:28 am
Type:
Comment

Hi

I found Your Library Map mashup and thouht wauwww, that’s exactly that kind of mashup/script I need to improve my own Libmap (http://www.esbenfjord.dk/bibmap/) over Danish Public Libraries, that I made with The Google Map API and a Mysql database with alle the library metadata.

And now I have a working Beta of The new Libmap over Danish Libraries using your guys mashup script, see http://www.esbenfjord.dk/bibmap/testmap/. It’s in danish of course, but if You want to test it, You could search for ‘Kolding’ or ‘Århus’ or ‘Copenhagen’ for that matter. You don’t have to write ‘Denmark’. I’ve made the script put that on the searchstring.

I very much looking forward to the next version, where you can work with types and zones. I’ve allready have a database with alle the metadata for the Danish academic libraries and can also make one with the branch libraries, so that would be something to make all of that data searchable and displayable on a map.

Keep up the good work, and I hope You will Win ;-)

Esben Fjord

August
20
2006
12:29 am
Type:
Comment

I forgot to post the uri of the beta, so here it is: http://www.esbenfjord.dk/bibmap/testmap/

Esben

August
20
2006
11:55 am
Type:
Comment

Esben, I am very flattered and impressed that you have made good use of my code so soon after I released it! I am already working on a second version of the script that will make it more flexible and easier to re-use. I will be writing documentation for it toward the end of this month as well.

August
20
2006
1:11 pm
Type:
Comment

Sounds very interesting. Looking forward to it.

Esben

Participate! Leave your comment.