Files
mehl.mx/content/blog/2014-09-28-setting-openstreetmap-as-default-in-thunderbird-contacts.md

2.5 KiB
Raw Blame History

title, author, type, date, url, yourls_shorturl, categories, tags
title author type date url yourls_shorturl categories tags
Setting Openstreetmap as default in Thunderbirds contacts Max post 2014-09-28T10:40:42+00:00 /2014/setting-openstreetmap-as-default-in-thunderbird-contacts/
http://s.mehl.mx/y4Tse
English
Tech
contacts
email
free software
guide
howto
maps
thunderbird
tutorial

Thunderbird contact map buttonIf you use Thunderbird and its contact functionality, you might already have stumbled over the „show on map“ feature. If you add addresses to your contacts (no matter if directly in Thunderbird or via CalDAV) there appears a button which enabled you to open a map with the contacts location.

The default search provider is Google Maps. If you dont like this service and prefer free and open systems like me, you can also add openstreetmap.org as your default map service. You only have to change a value in the advanced configuration.

Open the Settings menu, select the Advanced panel, select the General tab, and click Config Editor. Now copy in the search field: mail.addr_book.mapit_url.format and double click on the string to edit it.

You should now see the default value. Its nothing more than an URL with variables defined by the street, the country or the postal code of the respective contact. If you want to use Openstreetmap, fill in this value:

https://www.openstreetmap.org/search?query=@A1+@A2+@CI+@ST+@ZI+@CO

Restart Thunderbird and test again with an existing contact. By clicking on the button you should now see OSM instead of Google Maps where you can select one of the results in the left sidebar. Congratulations!

Further reading:

For more information about Thunderbirds config editor, see the official knowledgebase entry

If you want to set other variables in the map query, therere some hints on Mozillas Hidden prefs guide