src/Service/DistanceMatrix/DistanceMatrix.php 1 location
|
@@ 44-50 (lines=7) @@
|
| 41 |
|
* |
| 42 |
|
* @return DistanceMatrixResponse |
| 43 |
|
*/ |
| 44 |
|
public function process(DistanceMatrixRequestInterface $request) |
| 45 |
|
{ |
| 46 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->build())); |
| 47 |
|
$data = $this->parse((string) $response->getBody()); |
| 48 |
|
|
| 49 |
|
return $this->buildResponse($data); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** |
| 53 |
|
* @param string $data |
src/Service/Elevation/Elevation.php 1 location
|
@@ 41-47 (lines=7) @@
|
| 38 |
|
* |
| 39 |
|
* @return ElevationResponse |
| 40 |
|
*/ |
| 41 |
|
public function process(ElevationRequestInterface $request) |
| 42 |
|
{ |
| 43 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->build())); |
| 44 |
|
$data = $this->parse((string) $response->getBody()); |
| 45 |
|
|
| 46 |
|
return $this->buildResponse($data); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
/** |
| 50 |
|
* @param string $data |
src/Service/TimeZone/TimeZone.php 1 location
|
@@ 51-57 (lines=7) @@
|
| 48 |
|
* |
| 49 |
|
* @return TimeZoneResponse |
| 50 |
|
*/ |
| 51 |
|
public function process(TimeZoneRequestInterface $request) |
| 52 |
|
{ |
| 53 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->build())); |
| 54 |
|
$data = $this->parse((string) $response->getBody()); |
| 55 |
|
|
| 56 |
|
return $this->buildResponse($data); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
/** |
| 60 |
|
* @param string $data |
src/Service/Geocoder/Geocoder.php 1 location
|
@@ 44-50 (lines=7) @@
|
| 41 |
|
* |
| 42 |
|
* @return GeocoderResponse |
| 43 |
|
*/ |
| 44 |
|
public function geocode(GeocoderRequestInterface $request) |
| 45 |
|
{ |
| 46 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->build())); |
| 47 |
|
$data = $this->parse((string) $response->getBody()); |
| 48 |
|
|
| 49 |
|
return $this->buildResponse($data); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** |
| 53 |
|
* @param string $data |