src/Service/Directions/Directions.php 1 location
|
@@ 42-48 (lines=7) @@
|
| 39 |
|
* |
| 40 |
|
* @return DirectionsResponse |
| 41 |
|
*/ |
| 42 |
|
public function route(DirectionsRequest $request) |
| 43 |
|
{ |
| 44 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->buildQuery())); |
| 45 |
|
$data = $this->parse((string) $response->getBody()); |
| 46 |
|
|
| 47 |
|
return $this->buildResponse($data); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* @param string $data |
src/Service/DistanceMatrix/DistanceMatrix.php 1 location
|
@@ 39-45 (lines=7) @@
|
| 36 |
|
* |
| 37 |
|
* @return DistanceMatrixResponse |
| 38 |
|
*/ |
| 39 |
|
public function process(DistanceMatrixRequest $request) |
| 40 |
|
{ |
| 41 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->buildQuery())); |
| 42 |
|
$data = $this->parse((string) $response->getBody()); |
| 43 |
|
|
| 44 |
|
return $this->buildResponse($data); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* @param string $data |
src/Service/TimeZone/TimeZone.php 1 location
|
@@ 37-43 (lines=7) @@
|
| 34 |
|
* |
| 35 |
|
* @return TimeZoneResponse |
| 36 |
|
*/ |
| 37 |
|
public function process(TimeZoneRequest $request) |
| 38 |
|
{ |
| 39 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->buildQuery())); |
| 40 |
|
$data = $this->parse((string) $response->getBody()); |
| 41 |
|
|
| 42 |
|
return $this->buildResponse($data); |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
/** |
| 46 |
|
* @param string $data |