Bon Voyage!

30 06 2011

A simple but yet helpful line if you quickly want to look up the track from A to B. Opens google maps in your favourite browser, displaying the desired route.
$ gmaps city_1 city_2

#!/bin/bash
browser=firefox
from=$1
to=$2
$browser 'http://maps.google.de/maps?saddr='${from}'&daddr='${to}

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: