added text search into base api

This commit is contained in:
Gl3nda85 2017-02-09 18:28:21 +11:00
parent c72e2b06e1
commit 709c096b40
5 changed files with 52 additions and 1 deletions

20
tests/Test.php Normal file
View 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?>");