-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
32 lines (24 loc) · 934 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
$APIurl = "http://api.iRail.be/";
//Link to iRail API
$iRailAgent = "InfoScreen v0.1";
$template = "default";
$vicinity = 0.2; //stations closer than 200m
$systems = array("NMBS", "MIVB");
$timeout = 60;
$mivbarray = array(array("name" =>"Steenbok", "distance" => 186),
// array("name" =>"Plejade", "distance" => "362"),
//array("name" =>"Lombaerde", "distance" => "368"),
array("name" =>"Carina", "distance" => 425),
array("name" =>"Paduwa", "distance" => 424));
$nmbsarray = array(array("name" =>"Brussel Midi", "distance" => 3900),
array("name" =>"Evere", "distance" => 3900),
array("name" =>"Meiser", "distance" => 1300));
//3000m/hour = 50m/minute
for($i = 0; $i < sizeof($mivbarray); $i++){
$mivbarray[$i]["walking"] = round($mivbarray[$i]["distance"]/50);
}
for($i = 0; $i < sizeof($nmbsarray); $i++){
$nmbsarray[$i]["walking"] = round($nmbsarray[$i]["distance"]/50);
}
?>