【文件属性】:
文件名称:bahn.rb:显示 Deutsche Bahn 的公共交通选择
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-30 01:26:08
Ruby
从 m.bahn.de 网站加载公共交通连接。
这是在大力发展。 不要指望一个有效的解决方案!
例子
require 'bahn.rb'
agent = Bahn::Agent.new
routes = agent.get_routes(
"Düsseldorf reisholz s bahn", # start address or station
"Düsseldorf, Heerdter Sandberg 40 ", # target address or station
:include_coords => true, # include coordinates of stations
:limit => 1, # how many connections?
:start_type => :station, # :station or :address
:tar
【文件预览】:
bahn.rb-master
----.gitignore(5B)
----changelog.md(165B)
----LICENSE(1KB)
----bahn.gemspec(952B)
----README.md(1KB)
----lib()
--------bahn.rb(239B)
--------bahn()
----Gemfile(312B)
----.gitattributes(483B)
----Rakefile(394B)
----test()
--------test.rb(7KB)
----Gemfile.lock(1002B)