Skip to content

Commit

Permalink
Place Search types parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpechkarev authored Nov 23, 2016
1 parent fb0c60f commit 770de1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Examples.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public function getPlaceAdd(){
"name" => "Google Shoes!",
"phone_number" => "(02) 9374 4000",
"address" => "48 Pirrama Road, Pyrmont, NSW 2009, Australia",
"type" => "shoe_store",
"types" => ["shoe_store"], // types and not type as per docs
"website" => "http://www.google.com.au/",
"language" => "en-AU"
])
Expand Down Expand Up @@ -360,7 +360,7 @@ public function getPlaceAutoComplete(){

$d = \GoogleMaps::load('placeautocomplete')
->setParamByKey('input', 'Vict')
->setParamByKey('type', 'cities')
->setParamByKey('types', 'cities')
->setParamByKey('language', 'fr')
->getResponseByKey('predictions.place_id');

Expand Down

0 comments on commit 770de1b

Please sign in to comment.