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

39 lines
2.0 KiB
Markdown
Raw Normal View History

2019-10-17 14:34:23 +02:00
---
title: Setting Openstreetmap as default in Thunderbirds contacts
date: 2014-09-28T10:40:42+00:00
2019-10-18 19:10:14 +02:00
aliases: setting-openstreetmap-as-default-in-thunderbird-contacts
2019-10-17 14:34:23 +02:00
categories:
- blog
2019-10-19 19:12:42 +02:00
- english
2019-10-17 14:34:23 +02:00
tags:
- email
- guide
2019-10-18 23:53:42 +02:00
- tools
2019-10-17 14:34:23 +02:00
---
2019-10-18 23:53:42 +02:00
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 contacts location.
<!--more-->
{{< figure src="/img/blog/tb-map-contact.png" >}}
2019-10-17 14:34:23 +02:00
2019-10-18 19:26:55 +02:00
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][2] as your default map service. You only have to change a value in the advanced configuration.
2019-10-17 14:34:23 +02:00
2019-10-18 23:53:42 +02:00
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.
2019-10-17 14:34:23 +02:00
2019-10-18 19:26:55 +02:00
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:
2019-10-17 14:34:23 +02:00
2019-10-18 23:53:42 +02:00
`https://www.openstreetmap.org/search?query=@A1+@A2+@CI+@ST+@ZI+@CO`
2019-10-17 14:34:23 +02:00
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:**
2019-10-18 23:53:42 +02:00
- For more information about Thunderbirds config editor, see the official [knowledgebase entry][3].
- If you want to set other variables in the map query, therere some hints on [Mozillas Hidden prefs guide][4].
2019-10-17 14:34:23 +02:00
2019-10-18 23:53:42 +02:00
[1]: /uploads/tb-map-contact.png
[2]: http://openstreetmap.org
[3]: https://support.mozilla.org/en-US/kb/config-editor
2025-08-01 20:44:15 +02:00
[4]: http://web.archive.org/web/20140904073922/https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Hidden_prefs