Closed sajin577 closed 10 years ago
Response is displaying origin as destination and destination as origin.
File: ivory-google-map-master/src/Ivory/GoogleMap/Services/DistanceMatrix/DistanceMatrix.php
protected function buildDistanceMatrixResponse(\stdClass $distanceMatrixResponse) { $status = $distanceMatrixResponse->status; $destinations = $distanceMatrixResponse->destination_addresses; $origins = $distanceMatrixResponse->origin_addresses; $rows = $this->buildDistanceMatrixRows($distanceMatrixResponse->rows); return new DistanceMatrixResponse($status,$destinations,$origin,$rows); }
Order of the return parameter is wrong when passing to DistanceMatrixResponse..
Thx for reporting the issue! Can you provide a PR?
This has been fixed in 882cb65
Response is displaying origin as destination and destination as origin.
File: ivory-google-map-master/src/Ivory/GoogleMap/Services/DistanceMatrix/DistanceMatrix.php
Order of the return parameter is wrong when passing to DistanceMatrixResponse..