bioneural.net site preferences

Accessibility

Toggle width/ text size:

style

Default/Alternate

Suits visual impairment, mobile devices

Styling

Change the theme:

layout

Sorry, this option is not enabled

Link behaviour

Links with an icon are off-site:

links

Right-click any link to optionally open in a new window or tab


 

Address Book to Google Maps to RouteBuddy

A while back it was necessary to use an Address Book plugin to look up contacts using Google Maps, but Apple changed to make plotting addresses using Google Maps the default behaviour. It turns out with a bit of JavaScript you can grab the coordinates via the Google Maps API and include these in a special URL that will create a waypoint in RouteBuddy. No Address Book plugins or custom AppleScripts required.

Credits: Aburt gave me the idea to challenge myself to do it, having discovered this starting point with a strong hint from here.

Tested and compatible with Safari 3.1.2 and Firefox 3.0.1 using RouteBuddy 2.1.1.

Installation

Just select and drag the JavaScript below into Safari's Bookmarks Bar (or your browser's equivalent) for easy access, creating a so-called "bookmarklet", and give it a short name (I used LL2RB but anything will do):

javascript:void(prompt('Drag%20the%20selection%20below%20onto%20RouteBuddy\'s%20Dock%20icon:',['rbud://view?&lat='+gApplication.getMap().getCenter().lat()+'&lon='+gApplication.getMap().getCenter().lng()+'&zoom=4']));

Usage

Select a contact in Address Book and control or right-click on the address label to reveal the Map of option:

bioneuralnet-map-of.jpg

This should open a Google Map centred on the address for that contact, with an open info window. If that location looks correct just click on the bookmarklet and you should see something like the following:

bioneuralnet-rbud.jpg

All you need do now is follow the instruction to drag the selected URL onto RouteBuddy's icon in the Dock. Example URL:

rbud://view?&lat=53.371075&lon=-1.477572&zoom=4

This will launch RouteBuddy and create a new waypoint at these same coordinates, which you can then edit as appropriate:

bioneuralnet-rb-editor.jpg

But what happens if Google Maps botches the address look-up, or you want to add a location from Google Maps that isn't in your Address Book? No problem: since the script grabs the coordinates from the centre of the current view, all you need to do is re-centre the map to amend the coordinates. Likewise, when you enter an address directly into the search field in Google Maps the view automatically centres over the placemark, so again just nudge and/ or zoom the map if you need to fine-tune.

3 responses to Address Book to Google Maps to RouteBuddy


  1. 1 David

    Thanks Bruce - good hack.

    I'm still holding-off the excellent looking RouteBuddy, mainly because the Garmin support is Automotive model only so far. Seems slightly odd though, because coming at it from the other direction, some of the Aviation Garmins are Automotive compatible.

    Plenty of time yet for a decision!

  2. 2 Bruce

    Plenty of time yet for a decision!

    Yes, I guess your airframe still has a way to go before it needs navigation capabilities!

    I see however that the GPSMAP units @ Garmin > In the air > Portables are multi-mode (land, sea, air) such as the 296—which is also on RouteBuddy's list of compatible devices. Even if the model you're interested in isn't on the list right now that might only mean compatibility isn't known. If one member of a family is compatible there's at least a chance other members will be, so it could be worth contacting RouteBuddy with a specific enquiry.

  3. 3 David

    So it is - now how did I miss that?

    Probably the 495 will be OK then.

Something to say?

Comments may be moderated, are subject to spam filtering, and should be inoffensive and relevant to this post. Please disclose commercial interests.

Usable tags include <a href=""> <blockquote> <em>.