-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.php
70 lines (67 loc) · 3.83 KB
/
params.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
// ссылка на источник информации о положении целей AIS
$urlAISlocations = 'https://meri.digitraffic.fi/api/ais/v1/locations'; // AIS locations data url
// ссылка на источник сведений о целях AIS
$urlAISvessels = 'https://meri.digitraffic.fi/api/ais/v1/vessels'; // AIS targets metadata url
// Массив точек, в которых показывается обстановка AIS, radius - в км.
// AIS POI array, radius is in km.
$AISinterestPoints = array(
//'Гельсингфорс' => array('latitude'=>60.1688,'longitude'=>24.939,'radius'=>5),
//'Ханко' => array('latitude'=>59.8222,'longitude'=>22.9491,'radius'=>5),
//'Або' => array('latitude'=>60.432,'longitude'=>22.2236,'radius'=>5),
//'Stockholm' => array('latitude'=>59.37,'longitude'=>18.37,'radius'=>20)
'All' => array()
);
// Радиус получения обстановки AIS вокруг точки с изменяющимися координатами, километры
$movingPOIradius = 10; // AIS moving POI radius, km
// период опроса источника информации о положении, сек.
$getDataTimeout = 15; // AIS locations data polling interval, sec.
// Частота посылки информации клиентам, сек. AIS messages sending to clients intervals, sec.
// 0 - с частотой получения. 0 - synchronously
// Также указывает, какого рода информацию посылать: если не указать metainfo, то будут посылаться только координвты
$AISintervals = array(
'TPV' => 0,
'metainfo' => 60*2
);
// Период актуальности данных.
// Timeouts
// время в секундах, в течении которого цель AIS сохраняется после получения от неё последней информации
$noVehicleTimeout = 10*60; // seconds, time of continuous absence of the vessel in AIS, when reached - is deleted from the data. "when a ship is moored or at anchor, the position message is only broadcast every 180 seconds;"
// период в секундах после времени обновления данных, когда считается, что данные потеряли актуальность.
// data types timeouts
$gpsdProxyTimeouts = array(
'AIS' => array(
'status' => 86400, // Navigational status, one day сутки
'accuracy' => 600, // Position accuracy
'turn' => 60*5, //
'lon' => 60*10, //
'lat' => 60*10, //
'speed' => 60*5, //
'course' => 60*5, //
'heading' => 60*5, //
'maneuver' => 60*5 //
)
);
// Параметры подключения клиентов
$inetAIShost = "0.0.0.0"; // Clients connection setting
$inetAISport = "3800";
// Если указано, то данные будут отдаваться ещё и gpsdPROXY
// по умолчальному или указанному адресу
$gpsdPROXYhost = ''; // enable gpsdPROXY as client
$gpsdPROXYport = '';
// Источник сведений о координатах подвижной точки получения обстановки AIS.
// Если источника нет -- для подвижной точки и не будет получатся информация AIS.
// AIS moving POI TPV source. For own vehicle, for example.
// If no - no AIS data for moving point.
// gpsd
//$netAISgpsdHost = 'localhost';
//$netAISgpsdPort = '2947';
//$netAISgpsdPort = '3838'; // gpsdPROXY
// Signal K
//$netAISgpsdHost = array(['localhost',3000]);
//$netAISgpsdPort = null;
// Системные параметры System
// имя интерпретатора PHP
$phpCLIexec = 'php'; // php-cli executed name on your OS
//$phpCLIexec = '/usr/bin/php-cli'; // php-cli executed name on your OS
?>