---
title: Setting Openstreetmap as default in Thunderbird’s contacts
date: 2014-09-28T10:40:42+00:00
aliases: setting-openstreetmap-as-default-in-thunderbird-contacts
categories:
  - blog
  - english
tags:
  - Communication

---
If 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 contact’s location.

<!--more-->

{{< figure src="/img/blog/tb-map-contact.png" >}}

The default search provider is Google Maps. If you don’t like this service and prefer free and open systems like me, you can also add [openstreetmap.org][2] 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. It’s 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 Thunderbird’s config editor, see the official [knowledgebase entry][3].
- If you want to set other variables in the map query, there’re some hints on [Mozilla’s Hidden prefs guide][4].

[1]: /uploads/tb-map-contact.png
[2]: http://openstreetmap.org
[3]: https://support.mozilla.org/en-US/kb/config-editor
[4]: http://web.archive.org/web/20140904073922/https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Hidden_prefs
