From 948fed39263029cf878f1d3518859e3572d988cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Drummond?= Date: Thu, 27 Apr 2017 11:08:10 -0300 Subject: [PATCH] Documented the subradius property I almost reinvented the wheel creating a new lib just to have the option to broaden the search above the 60 places limit, as I didn't know of this property. A Google search led me to https://github.com/joshtronic/php-googleplaces/issues/5 and thankfuly I didn't need to implement a whole new thing. So I thought this property should be stated in the README. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 9e2a217..f25c8e7 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,22 @@ $google_places->reference = '#reference#'; // Reference from search results $details = $google_places->details(); ``` +### Subradius search + +Every method has a `$google_places->subradius` property, as to broad the search into smaller areas and get around Google's results limit of only 60 places per search. + +The subradius must be at least 200 meters and must divide evenly into radius (eg. for a `2000` radius, a valid use of the subradius would be `200`, `400`, `1000`; but not `670`, `1100` etc). + +Example: +```php +$google_places->location = array(-33.86820, 151.1945860); +$google_places->radius = 800; +$google_places->subradius = 400; // 400m subradius +$results = $google_places->radarSearch(); +``` + +More details on the subradius here: https://github.com/joshtronic/php-googleplaces/issues/5 + ## The Future The project that I created this library for is now defunct so I’m not actively -- 2.39.5