-
Notifications
You must be signed in to change notification settings - Fork 0
/
NearestResult.php
51 lines (41 loc) · 1.23 KB
/
NearestResult.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
<?php
namespace futuretek\osrm;
use yii\base\BaseObject;
/**
* Class NearestResult
*
* @package futuretek\osrm
* @author Lukas Cerny <[email protected]>
* @license proprietary
* @link http://www.futuretek.cz
*/
class NearestResult extends BaseObject
{
/**
* @var string Unique internal identifier of the segment (ephemeral, not constant over data updates).
* This can be used on subsequent request to significantly speed up the query and to connect multiple services.
* E.g. you can use the hint value obtained by the nearest query as hint values for route inputs.
*/
public $hint;
/** @var string Distance from query coordinates */
public $distance;
/** @var string Name of the street the coordinate snapped to */
public $name;
/** @var array Array that contains the [longitude, latitude] pair of the snapped coordinate */
public $location;
/** @var array Array of OpenStreetMap node ids. */
public $nodes;
/**
* @var array Mapped coordinates - [Latitude, Longitude]
* @deprecated
*/
public $mapped_coordinate;
/**
* @inheritdoc
*/
public function init()
{
parent::init();
//Backward compatibility
}
}