Performs nearby search for places. :param location: The latitude/longitude value for which you wish to obtain the closest, human-readable address. :type location: string, dict, list, or tuple :param radius: Distance in meters within which to bias results.
(
client,
location=None,
radius=None,
keyword=None,
language=None,
min_price=None,
max_price=None,
name=None,
open_now=False,
rank_by=None,
type=None,
page_token=None,
)
| 273 | |
| 274 | |
| 275 | def places_nearby( |
| 276 | client, |
| 277 | location=None, |
| 278 | radius=None, |
| 279 | keyword=None, |
| 280 | language=None, |
| 281 | min_price=None, |
| 282 | max_price=None, |
| 283 | name=None, |
| 284 | open_now=False, |
| 285 | rank_by=None, |
| 286 | type=None, |
| 287 | page_token=None, |
| 288 | ): |
| 289 | """ |
| 290 | Performs nearby search for places. |
| 291 | |
| 292 | :param location: The latitude/longitude value for which you wish to obtain the |
| 293 | closest, human-readable address. |
| 294 | :type location: string, dict, list, or tuple |
| 295 | |
| 296 | :param radius: Distance in meters within which to bias results. |
| 297 | :type radius: int |
| 298 | |
| 299 | :param region: The region code, optional parameter. |
| 300 | See more @ https://developers.google.com/places/web-service/search |
| 301 | :type region: string |
| 302 | |
| 303 | :param keyword: A term to be matched against all content that Google has |
| 304 | indexed for this place. |
| 305 | :type keyword: string |
| 306 | |
| 307 | :param language: The language in which to return results. |
| 308 | :type language: string |
| 309 | |
| 310 | :param min_price: Restricts results to only those places with no less than |
| 311 | this price level. Valid values are in the range from 0 |
| 312 | (most affordable) to 4 (most expensive). |
| 313 | :type min_price: int |
| 314 | |
| 315 | :param max_price: Restricts results to only those places with no greater |
| 316 | than this price level. Valid values are in the range |
| 317 | from 0 (most affordable) to 4 (most expensive). |
| 318 | :type max_price: int |
| 319 | |
| 320 | :param name: One or more terms to be matched against the names of places. |
| 321 | :type name: string or list of strings |
| 322 | |
| 323 | :param open_now: Return only those places that are open for business at |
| 324 | the time the query is sent. |
| 325 | :type open_now: bool |
| 326 | |
| 327 | :param rank_by: Specifies the order in which results are listed. |
| 328 | Possible values are: prominence (default), distance |
| 329 | :type rank_by: string |
| 330 | |
| 331 | :param type: Restricts the results to places matching the specified type. |
| 332 | The full list of supported types is available here: |