| @@ 478-482 (lines=5) @@ | ||
| 475 | $query['mode'] = strtolower($this->travelMode); |
|
| 476 | } |
|
| 477 | ||
| 478 | if ($this->avoidTolls) { |
|
| 479 | $query['avoid'] = 'tolls'; |
|
| 480 | } elseif ($this->avoidHighways) { |
|
| 481 | $query['avoid'] = 'highways'; |
|
| 482 | } |
|
| 483 | ||
| 484 | if ($this->hasProvideRouteAlternatives()) { |
|
| 485 | $query['alternatives'] = $this->provideRouteAlternatives ? 'true' : 'false'; |
|
| @@ 425-429 (lines=5) @@ | ||
| 422 | $query['mode'] = strtolower($this->travelMode); |
|
| 423 | } |
|
| 424 | ||
| 425 | if ($this->avoidTolls) { |
|
| 426 | $query['avoid'] = 'tolls'; |
|
| 427 | } elseif ($this->avoidHighways) { |
|
| 428 | $query['avoid'] = 'highways'; |
|
| 429 | } |
|
| 430 | ||
| 431 | if ($this->hasUnitSystem()) { |
|
| 432 | $query['units'] = strtolower($this->unitSystem); |
|