Skip to content

Releases: varsitynewsnetwork/php-google-places-api

Updated constructor

24 Sep 00:45
0f3f896

Choose a tag to compare

The PlaceService now has an updated constructor.

/**
 * @param ClientInterface $client
 * @param string|null $googleApiKey
 */
public function __construct(ClientInterface $client, ?string $googleApiKey = null)
{
    $this->client = $client;
    $this->googleApiKey = $googleApiKey;
}

You can pass in (optionally) a Google api key to be used with your requests.

The setApiKey() method is still available to use, too.

Add optional parameters to text search and find place

04 Jan 15:36
f633cd9

Choose a tag to compare

This release adds an $optionalParams array to textSearch, findPlace, and detail. You can use this array to specify things like

['locationbias' => 'point:42.9758987,-85.6758428', 'language' => 'fr']

for find place requests, or

['type' => 'night_club', 'location' => '42.9758987,-85.6758428', 'radius' => '10000']

for text searches.

This release also allows clients to specify output fields on place details requests, which can help control costs when using the Google Place API.

Note that because text search returns all fields by default, the method signature of textSearch differs from both findPlace and detail.

Find Place from Text Support

02 Jan 20:50
b2d5c78

Choose a tag to compare

This release adds findplacefromtext API support, adds a ->findPlace() method, and clearly distinguishes textsearch requests by changing the ->search() method to ->textSearch().

Fixing errors with details()

05 Aug 14:48

Choose a tag to compare

Merge pull request #5 from mrkrstphr/fixes

Fixing some logic errors with how detail results are returned

Place details

31 Jul 15:55

Choose a tag to compare

  • Implemented the ability to get details on a place by placeid

Initial Release

30 Jul 15:07

Choose a tag to compare

Go forth and be awesome.