derhuerst / vbb-stations-cli

Find and filter VBB stations from the command line.
https://github.com/derhuerst/vbb-stations-cli
ISC License
4 stars 0 forks source link

v0.5.0: output lines in csv? #3

Closed JayBrown closed 8 years ago

JayBrown commented 8 years ago

I just installed v0.5.0 and noticed that you've added the operating lines to the pretty output. Great!

Any plans to add these to the csv-format output as well? (Would like to include the operating lines in my VBBar script; otherwise it's ready for upload.)

derhuerst commented 8 years ago

Will do, give me a few minutes! 😀

derhuerst commented 8 years ago

Using CSV output, I can only give you string of comma-separated line ids, because the line names may be ambiguous. So you would have to manually look them up.

derhuerst commented 8 years ago

vbb-stations-cli@0.6.0 should have this now. The output looks like the following:

id,name,latitude,longitude,weight,lines
9044201,U Berliner Str. (Berlin),52.487051,13.331361,26185,"104,N7,N9,N42,U7,U9"
JayBrown commented 8 years ago

That's a-ok. All I need is tr , ' ' for the echo command to "prettify" it… and if I need to awk through each line, the comma-delimiter would come in handy as well. Thank you.

derhuerst commented 8 years ago

Using CSV output, I can only give you string of comma-separated line ids, because the line names may be ambiguous.

Sorry, i forgot what I mentioned above, will change it to ids.