This Blog Is Not For Reading

A blog, just like any blog, only more so

  • Subscribe

  • Categories

  • RSS Bob Jonkman’s Microblog

    • Favorite 9 June 2021
      bobjonkman favorited something by lnxw48a1: Last year, while visiting #sonTwo and meeting #GS3 in person for the first time, I asked my daughter-in-law about smoke and carbon monoxide detectors. She said they had one of each, but she wanted more. So I ordered a few of each and they put them up. Tonight, the gas […]
    • New note by bobjonkman 2 May 2021
      But human labour only produces surplus value when it's being exploited. If humans are paid a fair value for their labour then there is no "surplus", ie. no profit for the corporate owners. This is why I favour worker-owned co-operatives instead of capitalist-owned corporations.
    • bobjonkman repeated a notice by lxo 2 May 2021
      RT @lxo the greatest challenge of automation for a capitalist economy is that machines don't produce surplus value, only human labor does
    • Favorite 2 May 2021
      bobjonkman favorited something by lxo: the greatest challenge of automation for a capitalist economy is that machines don't produce surplus value, only human labor does
    • bobjonkman repeated a notice by lnxw48a1 31 January 2021
      RT @lnxw48a1 @geniusmusing Yeah. :-( I think the #blockwars folks may have indirectly caused this. There are people who file complaints against client apps that don’t build in blocklists against specific servers whose moderation policies they dislike. I think that #Matrix / #Element competes with one or more Google-owned chat-type services. Since they gatekeep the […]
    • Favorite 31 January 2021
      bobjonkman favorited something by lnxw48a1: @geniusmusing Yeah. :-( I think the #blockwars folks may have indirectly caused this. There are people who file complaints against client apps that don’t build in blocklists against specific servers whose moderation policies they dislike. I think that #Matrix / #Element competes with one or more Google-owned chat-type services. Since […]
    • New note by bobjonkman 30 January 2021
      And I can't figure out how to connect to a particular server. The #Patchwork #SSB client I'm using has a "+ Join Server" field, but it requires an invitation code. Which I can't generate unless I have a pub server. Which I can't join until I have an invitation code... Sigh. #SSB: Concept: A+ ; […]
    • New note by bobjonkman 29 January 2021
      I was on #SSB Secure Scuttlebutt for a while (attended an #SSB seminar at last year's LibrePlanet conference), but the application was so resource intense that my laptop couldn't keep up. And, there wasn't the network effect I needed to make it useful. While there are probably interesting people to converse with, I have no […]
    • New note by bobjonkman 23 January 2021
      Oh, hang on. It's @joeyh who reveals the inadequacy of #journalism. Not the article author, @Jonemo@twitter.com #ReadingComprehension
    • New note by bobjonkman 23 January 2021
      @lnxw48a1 writes "In this post, Joey H. accidentally reveals a major reason why #news_media / #journalism is so bad today." This didn't leap out at me. Is it because good, in-depth reporting requires A LOT of research and hard work, and that modern journalism is adequately rewarded by re-Tweeted sound bites?

How To Use OpenStreetMap with Thunderbird’s “Get Map” button

Posted by Bob Jonkman on 9th October 2012

Thunderbird’s address book has a “Get Map” button to show an address location on a map. By default, Thunderbird uses Google Maps to display a location. Wouldn’t it be nice to use OpenStreetMap in Thunderbird instead? Here’s how!

OSM

OpenStreetMap

OpenStreetMap uses Nominatim to search for and display a location. The Wiki tells us the URL query is processed left-to-right, and the example shows the address elements from greatest to least resolution:

http://nominatim.openstreetmap.org/search?q=135+pilkington+avenue,+birmingham&format=xml&polygon=1&addressdetails=1



Thunderbird

Thunderbird

The Thunderbird Knowledgebase for Mail and News settings gives us the following address-related parameters:

Substitution variables:
@A1: address, part 1
@A2: address, part 2
@CI: city
@ST: state
@ZI: zip code
@CO: country

Now we combine the two in Thunderbird’s configuration file prefs.js:

user_pref("mail.addr_book.mapit_url.format", "http://nominatim.openstreetmap.org/search.php?q=@A1,@A2,@CI,@ST,@CO");



If you prefer not to edit the pref.js file, here’s a step-by-step procedure to do it with the graphical interface.

If you’re using Linux, select Edit, Preferences from the Thunderbird menu. On Thunderbird for Windows select Tools, Options. Click on the Advanced toolbar button, then the General tab.

Screenshot of the Preferences window, Advanced tab

Click on the Config Editor… button.

Screenshot of advanced configuration warning

Click on the I’ll be careful, I promise! button.

Screenshot of Thunderbird advanced configuration window

Type mapit in the Search field,

Screenshot showing the mail.addr_book.mapit_url.format setting

Double-click on the line for the mail.addr_book.mapit_url.format parameter.

Screenshot of input dialogue

Delete what’s there, and type http://nominatim.openstreetmap.org/search.php?q=@A1,@A2,@CI,@ST,@CO

Screenshot of input box with OSM value

Click OK, close the about:config window, and close the Preferences window.

Now we need to find an address book entry with enough data to generate a map.

From the Thunderbird menu, select Tools, Address Book, and double-click on an entry. Click New Contact if there’s nobody in your address book (and you can enter your own address).

Screenshot showing address book general info entry form

Click on the Private or Work tab to show the screen for address entry.

Screenshot showing address book work info entry form

At minimum, fill in the Country field. Adding State/Province, City and Address will improve the resolution of the map. If you do fill in higher resolution fields (Address or City) then you also need to fill in the lower-resolution fields (State/Province and Country), or the Nominatim search won’t work.

Note that the Nominatim URL query doesn’t include the @ZI variable, so the ZIP/Postal Code field isn’t used to create the map.

When all the data is entered, click OK.

Screenshot of Thunderbird Address Book showing Bob Jonkman

With any address field filled in, the address book entry now displays a Get Map button.

Go ahead, click it!

Screenshot of OpenStreetMap

And there we have it! An OpenStreetMap of the address in the Thunderbird address book.

If you’ve done this, or have suggestions for improving these instructions please let me know in the comments or by e-mail at bjonkman@sobac.com.

–Bob.

All screenshots taken by Bob Jonkman, and freely available for re-use (CC0CC0).

The new OpenStreetMap logo by Ken Vermette from http://blog.osmfoundation.org/2011/05/13/new-openstreetmap-logo/, used under a Creative Commons LicenseCC BY-SA license.

The Thunderbird Logo and Wordmark are used according to the Mozilla Foundation Visual Identity Guidelines for Thunderbird.

Maps © OpenStreetMap contributors, CC BY-SA

Tags: , , , , , , , , , , , , ,
Posted in FLOSS, Google Free, How To | Comments Off on How To Use OpenStreetMap with Thunderbird’s “Get Map” button

 
Better Tag Cloud