:param key: Maps API key. Required, unless "client_id" and "client_secret" are set. Most users should use an API key. :type key: string :param client_id: (for Maps API for Work customers) Your client ID. Most users should use an API key instead.
(self, key=None, client_id=None, client_secret=None,
timeout=None, connect_timeout=None, read_timeout=None,
retry_timeout=60, requests_kwargs=None,
queries_per_second=60, queries_per_minute=6000,channel=None,
retry_over_query_limit=True, experience_id=None,
requests_session=None,
base_url=_DEFAULT_BASE_URL)
| 55 | """Performs requests to the Google Maps API web services.""" |
| 56 | |
| 57 | def __init__(self, key=None, client_id=None, client_secret=None, |
| 58 | timeout=None, connect_timeout=None, read_timeout=None, |
| 59 | retry_timeout=60, requests_kwargs=None, |
| 60 | queries_per_second=60, queries_per_minute=6000,channel=None, |
| 61 | retry_over_query_limit=True, experience_id=None, |
| 62 | requests_session=None, |
| 63 | base_url=_DEFAULT_BASE_URL): |
| 64 | """ |
| 65 | :param key: Maps API key. Required, unless "client_id" and |
| 66 | "client_secret" are set. Most users should use an API key. |
| 67 | :type key: string |
| 68 | |
| 69 | :param client_id: (for Maps API for Work customers) Your client ID. |
| 70 | Most users should use an API key instead. |
| 71 | :type client_id: string |
| 72 | |
| 73 | :param client_secret: (for Maps API for Work customers) Your client |
| 74 | secret (base64 encoded). Most users should use an API key instead. |
| 75 | :type client_secret: string |
| 76 | |
| 77 | :param channel: (for Maps API for Work customers) When set, a channel |
| 78 | parameter with this value will be added to the requests. |
| 79 | This can be used for tracking purpose. |
| 80 | Can only be used with a Maps API client ID. |
| 81 | :type channel: str |
| 82 | |
| 83 | :param timeout: Combined connect and read timeout for HTTP requests, in |
| 84 | seconds. Specify "None" for no timeout. |
| 85 | :type timeout: int |
| 86 | |
| 87 | :param connect_timeout: Connection timeout for HTTP requests, in |
| 88 | seconds. You should specify read_timeout in addition to this option. |
| 89 | Note that this requires requests >= 2.4.0. |
| 90 | :type connect_timeout: int |
| 91 | |
| 92 | :param read_timeout: Read timeout for HTTP requests, in |
| 93 | seconds. You should specify connect_timeout in addition to this |
| 94 | option. Note that this requires requests >= 2.4.0. |
| 95 | :type read_timeout: int |
| 96 | |
| 97 | :param retry_timeout: Timeout across multiple retriable requests, in |
| 98 | seconds. |
| 99 | :type retry_timeout: int |
| 100 | |
| 101 | :param queries_per_second: Number of queries per second permitted. Unset queries_per_minute to None. If set smaller number will be used. |
| 102 | If the rate limit is reached, the client will sleep for the |
| 103 | appropriate amount of time before it runs the current query. |
| 104 | :type queries_per_second: int |
| 105 | |
| 106 | :param queries_per_minute: Number of queries per minute permitted. Unset queries_per_second to None. If set smaller number will be used. |
| 107 | If the rate limit is reached, the client will sleep for the |
| 108 | appropriate amount of time before it runs the current query. |
| 109 | :type queries_per_minute: int |
| 110 | |
| 111 | :param retry_over_query_limit: If True, requests that result in a |
| 112 | response indicating the query rate limit was exceeded will be |
| 113 | retried. Defaults to True. |
| 114 | :type retry_over_query_limit: bool |
nothing calls this directly
no test coverage detected