added text search into base api
This commit is contained in:
parent
c72e2b06e1
commit
709c096b40
5 changed files with 52 additions and 1 deletions
20
tests/Test.php
Normal file
20
tests/Test.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: dylanaird
|
||||
* Date: 9/2/17
|
||||
* Time: 3:13 PM
|
||||
*/
|
||||
|
||||
require '../vendor/autoload.php';
|
||||
|
||||
require_once '../src/GooglePlaces.php';
|
||||
require_once '../src/GooglePlacesClient.php';
|
||||
|
||||
|
||||
$google_places = new joshtronic\GooglePlaces('AIzaSyCBadIpHu7WgpO0IXGKZw143orleCgi_A4');
|
||||
|
||||
$google_places->query = "Shop 111 Epping Plaza High Street";
|
||||
$results = $google_places->textsearch();
|
||||
|
||||
highlight_string("<?php\n\$data =\n" . var_export($results, true) . ";\n?>");
|
Loading…
Add table
Add a link
Reference in a new issue