Skip to content

Instantly share code, notes, and snippets.

@tom-it
Created October 22, 2018 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tom-it/d0728039ac90a0b94d423cadb70e2d16 to your computer and use it in GitHub Desktop.
Save tom-it/d0728039ac90a0b94d423cadb70e2d16 to your computer and use it in GitHub Desktop.
opencart replace function
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