Tag Archives: Microformats

geo:truc generates microdata (geocoordinates)

A small update on geo:truc, but it will hopefully help webmasters. Following the announcement of the creation of schema.org, it is possible to get an address and/or coordinates as a snippet of HTML code enriched with GeoCoordinates.

As usual, simply find a place you like, go to the combo box titled Code, and choose GeoCoordinates (microdata) and a pop-up window will appear with the code you need.

geo:truc in swedish, OpenSearch support

Now geo:truc can be read in swedish. It supports also OpenSearch, which means that you can start searching from your toolbar in Firefox without visiting first the site. I haven’t tested it yet on other browsers but that should make it.

Read more

geo:truc has mutilingual support, french first supported

So I finally added support for other languages in geo:truc. It is now possible to use it in french.

Next step is to have swedish support.

Read more

Talking to 200 persons at once

I had a talk this morning for presenting the new portal of GBIF-Sweden to the employees of the Swedish Museum of Natural History.

I talked in Cosmonova, which is a huge dome-theater, and that was really impressive to be there. It was a little bit weird as well since the public was in the darkness, I couldn’t see if people were interested or not.

So I presented our new portal. It features a search function: you can now search among 16 millions of records of specimens and observations from swedish databases. You can see the result as a list of occurences, or displayed on a map, at least for records with coordinates.

It contains also news and documents about GBIF.

On the microformat front, the portal uses geo each time a record has coordinates. So if you have Operator installed, and if the map we provide doesn’t fit you or you want to see the location with satellite pictures, you just need to right click and go to the map provider you like (Google or Yahoo!)

The URL is http://www.gbif.se

It’s all in swedish :-)

The last race

The last 6 months or so I have been working for revamping the website of GBIF-Sweden.

It is currently a blog from which you can reach different services that we propose (beside the news and documents, we provide the swedish audience with a mapserver and a few other services). The database we use is built from the 15 millions records we deliver to the GBIF network.

We changed the paradigm for our new web site, and soon it will be a portal, from which you can search among our huge database, see occurences on a map, search the web and of course read the news about biodiversity and find documents related to GBIF (I can add as well that I embedded a few microformats).

It has been in beta test for a month now, and the deadline for release is April 10th, 2008. It hope we’ll be ready by then 😉

You can have a look at http://www.gbif.se:8080 [beware : 1/ it’s a temporary link 2/it’s in swedish!]

An exemple of use of the web service

One simple exemple with two uses of geo:truc as a web service.

First we create a very simple PHP function calling the web service, with its first parameter the location we want to get the coordinates, and the second the format in which we want them; and then we invoke the function first for geotagging our web page with META tags in the header section, then we call it again for georeferencing the place we want to write about, and why not, having it as a microformat.

function getGeoTag ($location, $format) {
$url = “http://www.geotruc.net/gt.php”;
$parameters = “?q=”.urlencode($location).”&format=”.$format;

return file_get_contents($url.$parameters);
<!– First call of getGeoTag //–>

<?php echo getGeoTag (“New York, USA”, “html”); ?>
<title>Test geotag</title>
<!– Second call of getGeoTag //–>
Gergovie (<?php echo getGeoTag (“Gergovie, France”, “geo”);?>) is a place for winners!

As shown with this simple example, building applications using geo:truc as a web service isn’t difficult.