Cédric Bosdonnat - Maphttps://bosdonnat.fr/2010-06-14T11:25:00+02:00A geek's perspectiveHackweek 2010 is over2010-06-14T11:25:00+02:002010-06-14T11:25:00+02:00Cédric Bosdonnattag:bosdonnat.fr,2010-06-14:/hackweek-2010-is-over.html<p>Here at Novell, most of us developers were enjoying the
Hackweek #5 last week. I decided to continue improving the Evolution
maps integration I started some times ago. Last week I added the
following new features:</p>
<ul>
<li>Define a postal address as the location of a meeting / appointment</li>
<li>Show a meeting …</li></ul><p>Here at Novell, most of us developers were enjoying the
Hackweek #5 last week. I decided to continue improving the Evolution
maps integration I started some times ago. Last week I added the
following new features:</p>
<ul>
<li>Define a postal address as the location of a meeting / appointment</li>
<li>Show a meeting on a map if the location can be parsed as a postal
address</li>
<li>Show the selected contacts of an address book on a map</li>
<li>Show all the different addresses of a single contact on a map</li>
</ul>
<p>There are still some things to improve:</p>
<ul>
<li>The focus chain in the address dialog isn't completely correct</li>
<li>Only US-formatted addresses are parsed in the location string. I
started some generic parsing code based on regular expressions, but
this is still not finished. <strong>Don't hesitate to send me a regexp to
parse the postal addresses in your country!</strong></li>
</ul>
<p>Here are some screenshots for you to better see the features before they
arrive on your desktop.</p>
<p><a href="https://bosdonnat.fr/data/evomap-location-details.png"><img alt="Location details dialog" src="https://bosdonnat.fr/data/evomap-location-details-300x158.png"></a></p>
<p>Location details dialog</p>
<p><a href="https://bosdonnat.fr/data/evomap-popup-menu.png"><img alt="The action to show the map of a meeting" src="https://bosdonnat.fr/data/evomap-popup-menu-255x300.png"></a></p>
<p>The action to show the map of a meeting</p>
<p><a href="https://bosdonnat.fr/data/evomap-map-meeting.png"><img alt="Appointment location on a map" src="https://bosdonnat.fr/data/evomap-map-meeting-300x234.png"></a></p>
<p>Appointment location on a map</p>
<p><a href="https://bosdonnat.fr/data/evomap-map-contact.png"><img alt="Map showing the addresses of a contact" src="https://bosdonnat.fr/data/evomap-map-contact-294x300.png"></a></p>
<p>Map showing the addresses of a contact</p>Maps for Evolution2009-09-21T23:08:00+02:002009-09-21T23:08:00+02:00Cédric Bosdonnattag:bosdonnat.fr,2009-09-21:/maps-for-evolution.html<p>I recently discovered two interesting Gnome projects:
libchamplain and Geoclue. <a href="http://projects.gnome.org/libchamplain/">Libchamplain</a> is a library to create and
handle maps. <a href="http://geoclue.freedesktop.org/">Geoclue</a> is a set of D-Bus services for positioning. As
I wanted to try them, I started to write a small Evolution plugin
showing a map with the positions of the …</p><p>I recently discovered two interesting Gnome projects:
libchamplain and Geoclue. <a href="http://projects.gnome.org/libchamplain/">Libchamplain</a> is a library to create and
handle maps. <a href="http://geoclue.freedesktop.org/">Geoclue</a> is a set of D-Bus services for positioning. As
I wanted to try them, I started to write a small Evolution plugin
showing a map with the positions of the contacts contained in an address
book.</p>
<p>The principle is really simple:</p>
<ol>
<li>Get the contacts with an address defined</li>
<li>For all of them transform the address into latitude and longitude
coordinates using Geoclue</li>
<li>Create the maps with the markers at the right place using
libchamplain</li>
</ol>
<p>I only have a screenshot to show today as I still haven't published the
sources yet. Don't worry I'll update this post as soon as I'll have them
somewhere on the web.</p>
<p>I would like to say a big thank you to <a href="http://blog.pierlux.com/category/technology/libchamplain/en+fr/">Pierre-Luc Beaudoin</a>, the main
libchamplain developer for having taken some time to help me review my
code and find why my markers weren't appearing... (I simply have
inverted lattitude and longitude at some point)</p>
<p><a href="https://bosdonnat.fr/data/contacts-map.png"><img alt="Contacts map from Evolution" src="https://bosdonnat.fr/data/contacts-map-300x300.png"></a></p>
<p>Contacts map from Evolution</p>
<p>This gave me some interesting idea for OpenOffice.org: why not having a
<a href="http://wiki.services.openoffice.org/wiki/Smart_Tags">SmartTag</a> showing a map for an address in
Writer?</p>