[Roadster] CLI suggestion
Ian McIntosh
ian_mcintosh at linuxadvocate.org
Tue Mar 1 07:03:00 PST 2005
> I have another suggestion... How about a command line interface for
> Roadster?
I think it's a great idea. There are other things that we could do from
the command line, too. We could generate map images, we could translate
addresses to lat/lon coordinates, we could search for points of interest
based on some given criteria. Other ideas?
-Ian
> 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
> _______________________________________________
> Roadster mailing list
> Roadster at cairographics.org
> http://lists.freedesktop.org/mailman/listinfo/roadster
>
More information about the Roadster
mailing list