Places search. :param query: The text string on which to search, for example: "restaurant". :type query: string :param location: The latitude/longitude value for which you wish to obtain the closest, human-readable address. :type location: string, dict, list, or tuple
(
client,
query=None,
location=None,
radius=None,
language=None,
min_price=None,
max_price=None,
open_now=False,
type=None,
region=None,
page_token=None,
)
| 196 | |
| 197 | |
| 198 | def places( |
| 199 | client, |
| 200 | query=None, |
| 201 | location=None, |
| 202 | radius=None, |
| 203 | language=None, |
| 204 | min_price=None, |
| 205 | max_price=None, |
| 206 | open_now=False, |
| 207 | type=None, |
| 208 | region=None, |
| 209 | page_token=None, |
| 210 | ): |
| 211 | """ |
| 212 | Places search. |
| 213 | |
| 214 | :param query: The text string on which to search, for example: "restaurant". |
| 215 | :type query: string |
| 216 | |
| 217 | :param location: The latitude/longitude value for which you wish to obtain the |
| 218 | closest, human-readable address. |
| 219 | :type location: string, dict, list, or tuple |
| 220 | |
| 221 | :param radius: Distance in meters within which to bias results. |
| 222 | :type radius: int |
| 223 | |
| 224 | :param language: The language in which to return results. |
| 225 | :type language: string |
| 226 | |
| 227 | :param min_price: Restricts results to only those places with no less than |
| 228 | this price level. Valid values are in the range from 0 (most affordable) |
| 229 | to 4 (most expensive). |
| 230 | :type min_price: int |
| 231 | |
| 232 | :param max_price: Restricts results to only those places with no greater |
| 233 | than this price level. Valid values are in the range from 0 (most |
| 234 | affordable) to 4 (most expensive). |
| 235 | :type max_price: int |
| 236 | |
| 237 | :param open_now: Return only those places that are open for business at |
| 238 | the time the query is sent. |
| 239 | :type open_now: bool |
| 240 | |
| 241 | :param type: Restricts the results to places matching the specified type. |
| 242 | The full list of supported types is available here: |
| 243 | https://developers.google.com/places/supported_types |
| 244 | :type type: string |
| 245 | |
| 246 | :param region: The region code, optional parameter. |
| 247 | See more @ https://developers.google.com/places/web-service/search |
| 248 | :type region: string |
| 249 | |
| 250 | :param page_token: Token from a previous search that when provided will |
| 251 | returns the next page of results for the same search. |
| 252 | :type page_token: string |
| 253 | |
| 254 | :rtype: result dict with the following keys: |
| 255 | results: list of places |