src/Service/Direction/DirectionService.php 1 location
|
@@ 55-61 (lines=7) @@
|
52 |
|
* |
53 |
|
* @return DirectionResponse |
54 |
|
*/ |
55 |
|
public function route(DirectionRequestInterface $request) |
56 |
|
{ |
57 |
|
$response = $this->getClient()->sendRequest($this->createRequest($request->build())); |
58 |
|
$data = $this->parse((string) $response->getBody()); |
59 |
|
|
60 |
|
return $this->buildResponse($data); |
61 |
|
} |
62 |
|
|
63 |
|
/** |
64 |
|
* @param string $data |
src/Service/DistanceMatrix/DistanceMatrixService.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/ElevationService.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/Geocoder/GeocoderService.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 |
src/Service/TimeZone/TimeZoneService.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 |