1 | <?php |
||
17 | class Distance extends Api |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | private $address = 'http://apis.baidu.com/apistore/distance/waypoints?'; |
||
23 | |||
24 | private $supportCoordTypes = [ |
||
|
|||
25 | 'bd09ll', //百度墨卡托坐标, 默认 |
||
26 | 'bd09mc', |
||
27 | 'gcj02', //经过国测局加密的坐标 |
||
28 | 'wgs84', //gps获取的坐标 |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * If $queryParams is string: |
||
33 | * 需要测距的点的经纬度坐标;需传入两个或更多的点。 |
||
34 | * 两个点之间用 “; ”进行分割开,单个点的经纬度用“,”分隔开; |
||
35 | * 例如: waypoints=118.77147503233,32.054128923368;116.3521416286, 39.965780080447;116.28215586757,39.965780080447. |
||
36 | * |
||
37 | * Can set [[coord_type]], so $queryParams is array |
||
38 | * |
||
39 | * @param string|array $queryParams |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 3 | public function get($queryParams) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 3 | protected function _parseResponse($result) |
|
76 | } |
||
77 |
This check marks private properties in classes that are never used. Those properties can be removed.