Created
October 22, 2018 21:15
-
-
Save tom-it/d0728039ac90a0b94d423cadb70e2d16 to your computer and use it in GitHub Desktop.
opencart replace function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function _googleUrl($params) { | |
return array( | |
'url' => 'https://maps.googleapis.com/maps/api/distancematrix/json', | |
'query' => 'origins=' . $params['origins'] . '&destinations=' . $params['destinations'] . '&mode=driving&units=' . $params['units'] . '&sensor=false&key=' . $this->config->get('zip_distance_api_key') | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment