[OSM-talk] Text interface to OSM
Kelly Jones
kelly.terry.jones at gmail.com
Sat Jan 19 19:39:30 GMT 2008
It's still horribly buggy, but I've coded a Ruby rewrite of my crude
text-based interface to OSM [curl, fly, xv, ImageMagick also
required-- you can probably get away w/o the last 3 if you don't use
the "graphical" features]:
http://kelly.terry.jones.googlepages.com/index.html
(I originally tried to attach the code to this message, but it was too large)
I've made some improvements from the Perl version (which I consider
obsolete, but is still available above for anyone who's interested).
Examples of what you can do from the starting point, which defaults to
Big Ben (don't type the stuff in brackets):
fly [see a crude, fly-generated map of where you are]
examine westminster [get all tags for a node close to you by name;
this is shorthand for 'examine node 25534427' which does exactly the
same thing]
examine big [get all tags for Big Ben-- do NOT do 'examine big ben'--
that will crash the program :( -- only use one word names]
go millbank [travel to a nearby node-- will load additional data as needed]
n [move 50 meters north]
speed 500 [change default speed to 500m/turn]
n [move 500 meters north-- will load additional data as needed]
display [show rendered zoom-level-16 tile of where you are]
display 10 [show rendered zoom-level-10 tile of where you are]
attach victoria [go to Victoria Embankment and start walking on it;
"attach way 1884029" would do the same thing]
u [move 500m on Victoria Embankment]
u [another 500m -- to move in the opposite direction, use 'd']
unattach [stop moving along Victoria Embankment, and resume normal
n/s/e/w motion]
teleport -106.6511 35.0846 [move to another longitude/latitude
entirely w/o having to walk along a way or use n/s/e/w repeatedly]
There are a couple of other features, too. See 'h' for a more complete
list, and read the source code for more.
--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
More information about the talk
mailing list