Skip to content

Commit

Permalink
Merge pull request #45 from warna720/patch-1
Browse files Browse the repository at this point in the history
Fix: empty geo when fetching geo map broken
  • Loading branch information
x-fran authored Dec 20, 2021
2 parents e24fa93 + 1121eaa commit 7c897dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Google/GTrends.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function explore($keyWordList, $category=0, $time='today 12-m', $property

$interestBySubregionPayload['hl'] = $this->options['hl'];
$interestBySubregionPayload['tz'] = $this->options['tz'];
$interestBySubregionPayload['req'] = Json\Json::encode($widget['request']);
$interestBySubregionPayload['req'] = str_replace('"geo":[]', '"geo":{}', Json\Json::encode($widget['request']));
$interestBySubregionPayload['token'] = $widget['token'];

$data = $this->_getData(self::INTEREST_BY_SUBREGION_ENDPOINT, 'GET', $interestBySubregionPayload);
Expand Down

0 comments on commit 7c897dd

Please sign in to comment.