kmz/kml files and htc footprints

Translation of the original in Catalan. Read it in: CatalàCastellano

footprint

These last holidays in madeira I took advantage to use a tool that the mobiles I had until now included but that until I switched to Android I had not decided to squeeze: I am talking about htc footprints. It is a tool that from a simple form lets you record emblematic, beautiful, interesting, curious places or ones we simply want to remember. This form stores things like a photograph of the place, a title, the GPS position, the address; you can add text comments and even voice ones; maybe I am leaving out some little detail of what you can add for each footprints entry but essentially that is all it does. Obviously the good thing about it is that thanks to the technologies the phone includes filling in the form is quite simple, since the photo, the GPS position or the voice recording are done with simple clicks, as always the most annoying part is typing text.

The interesting thing about it is that afterwards this can be exported to a .kmz file (all the footprints content) or a .kml file (just one footprints entry). The .kmz essentially contains a package with a kml file and the external files of the footprints, for example, the photographs or the audio. As for the .kml file format, it is an XML file with the content of the form I mentioned above. These files can be imported directly into Google Earth and many other tools of the Google saga. But what I am interested in commenting on in this article is the libkml library, also from google, the one I used to parse the kmz file of the

Madeira holidays

.

schema kml file

Through a simple code in python I generated the code in dokuwiki format needed to build the skeleton of the Madeira holidays web page. In fact, the code is not polished at all and is taken from

snippets

of examples I found on the web, but for what I wanted it was more than enough. At the end of the post you have a link.

For days now, along these lines, I have been turning over the idea of setting up a service that, after making an entry in footprints with the mobile, automatically sends the .kmz/.kml file by email to a reserved address that parses the email and automatically registers this content in one of the sections of oriolrius.cat; in fact, I still don't know whether the best idea is to inject it as a post or as a wiki entry. What I am sure of is that this will then have to be referenced in my lifestream so that there is a record of interesting places I know and that by the time you want to remember you have already forgotten. If anyone has ideas on how to improve this idea, they know what to do, let me know.

References:

NOTE: the dokuwiki code uses the

plugin de google maps

.