| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 7 | public function directions(string $origin, string $destination, array $params = []): RequestInterface |
|
| 26 | { |
||
| 27 | 7 | $params['origin'] = $origin; |
|
| 28 | 7 | $params['destination'] = $destination; |
|
| 29 | |||
| 30 | 7 | return $this->getWithDefaults( |
|
| 31 | 7 | static::API_HOST . '/maps/api/directions/json', |
|
| 32 | 7 | $this->queryParamsLang($params) |
|
| 33 | 7 | ); |
|
| 36 |