[Roadster] CLI suggestion

Dustin kirkland dustin.kirkland at gmail.com
Tue Mar 1 05:57:54 PST 2005


Hi Ian-

I have another suggestion...  How about a command line interface for
Roadster?  This would certainly be a very Linux feature to add to
Roadster that MS S&T will never have.

It would be very useful to embed roadster mapping commands into
various Bash/Perl/Python/Ruby/your_favorite scripting.

#!/bin/bash
# for example...
DIRECTIONS=`roadster-cli --waypoint "1600 Pennsylvania Ave. Washington
DC" --waypoint "50 Central Park South, New York, NY"`
DISTANCE=`echo $DIRECTIONS | grep DISTANCE: | awk -F" " '{print \$2}'`
TIME=`echo $DIRECTIONS | grep TIME: | awk -F" " '{print \$2}'`
# and so on...

This adds a level of extensibility to the mapping/route making
algorithms that would be pretty cool--especially since the directions
returned by this CLI should be reproducible in the GUI.

What do you think?


Dustin


More information about the Roadster mailing list