| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 1 | public function distanceMatrix(string $origins, string $destinations, array $params = []): RequestInterface |
|
| 26 | { |
||
| 27 | // Parameters for Language setting |
||
| 28 | 1 | $params['origins'] = $origins; |
|
| 29 | 1 | $params['destinations'] = $destinations; |
|
| 30 | |||
| 31 | 1 | return $this->getWithDefaults( |
|
| 32 | 1 | static::API_HOST . '/maps/api/distancematrix/json', |
|
| 33 | 1 | $this->queryParamsLang($params) |
|
| 34 | 1 | ); |
|
| 37 |