Wrapper for fetching info from VRs Junat kartalla-service

3997
    


来源:
Licence:
联系:
分类:
平台:
环境:
大小:
更新:
标签:
联系方式 :
免费下载 ×

下载APP,支持永久资源免费下载

限免产品服务请联系qq:1585269081

下载APP
免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
下载 ×

下载APP,资源永久免费


如果出现不能下载的情况,请联系站长,联系方式在下方。

免费下载 ×

下载论文助手APP,资源永久免费

免费获取

如果你已经登录仍然出现不能下载的情况,请【点击刷新】本页面或者联系站长


vr.js This is a node.js module for fetching info from VRs Junat kartalla-service. You can fetch info from different stations and trains. Documentation of the API is available here: http://www.vr.fi/fi/index/palvelut/avoin_data/Junatkartalla-rajapinta.html Install npm install vr Useful information Stations are named by codes. The list of the train stations with their code is available at: http://www.vr.fi/fi/index/palvelut/mobiilipalvelut/popup_asemien_tunnukset.html Also, the service also gives you information about whetever train is canceled or why it is delayed with code names. The list of them is available at Finnish Transport Agencys site: http://www2.liikennevirasto.fi/julkaisut/pdf4/rhk_2008-a1_aikataulusuunnittelu_ja_web.pdf How to use Theres three methods in this module. getStationInfo Gives you stations departing and arriving trains. You need to use code name of the station. For example, Lahti is LH. var vr = require(vr); vr.getStationInfo(LH, function (info) { console.log(info); }); getTrains Gives you all trains that are on the tracks at the moment. var vr = require(vr); vr.getTrains(function (trains) { console.log(trains); }); getTrain Gives information about the stations that the train with given guid goes by. Also gives latitude/longitude, speed and direction of train. (Use guid from getStationInfo/getTrains in this.) var vr = require(vr); vr.getTrain(S79, function (train) { console.log(train); });


免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。
扫描加我微信 ×

演示

×
登录 ×


下载 ×
论文助手网
论文助手,最开放的学术期刊平台
				暂无来源信息			 
回复
来来来,吐槽点啥吧

作者联系方式

×

向作者索要->