Title: Google Maps Distance_Matrix timing out · Issue #344 · 1ap/google-api-python-client · GitHub
Open Graph Title: Google Maps Distance_Matrix timing out · Issue #344 · 1ap/google-api-python-client
X Title: Google Maps Distance_Matrix timing out · Issue #344 · 1ap/google-api-python-client
Description: What steps will reproduce the problem? 1. Running my program that calls the Google Maps Distance Matrix some (currently unknown) number of times What is the expected output? What do you see instead? I expect to return a Distance Matrix, ...
Open Graph Description: What steps will reproduce the problem? 1. Running my program that calls the Google Maps Distance Matrix some (currently unknown) number of times What is the expected output? What do you see instead...
X Description: What steps will reproduce the problem? 1. Running my program that calls the Google Maps Distance Matrix some (currently unknown) number of times What is the expected output? What do you see instead...
Opengraph URL: https://github.com/1ap/google-api-python-client/issues/344
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Google Maps Distance_Matrix timing out","articleBody":"```\nWhat steps will reproduce the problem?\n1. Running my program that calls the Google Maps Distance Matrix some \n(currently unknown) number of times\n\n\nWhat is the expected output? What do you see instead?\n\nI expect to return a Distance Matrix, but instead I get a Timeout exception. \nIf I exceeded the daily usage for my API key, I believe a different exception \nshould be raised (i.e. OVER_QUERY_LIMIT).\n\n\nWhat version of the product are you using? On what operating system?\n\nI am using the Python Client for Google Maps Services \n(google-maps-services-python),\nPython IDLE version 2.7.10,\nMac OS X 10.10.3,\nGoogle Developer free API key\n\n\nPlease provide any additional information below.\n\nI wrote a program that creates a list of locations using Google's Places API \nand then makes a Distance Matrix using that list. It works the first 25 or so \ntimes that it runs (with about a 4x20 matrix), but then it stops working.\nInstead, I get the following error:\n\nTraceback (most recent call last):\n File \"/Users/akubota/Documents/BusRouting.py\", line 117, in \u003cmodule\u003e\n matrixW = client.distance_matrix(origins1, places, mode = 'walking', units = 'imperial')\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/googlemaps/distance_matrix.py\", line 118, in distance_matrix\n return client._get(\"/maps/api/distancematrix/json\", params)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/googlemaps/client.py\", line 185, in _get\n base_url, accepts_clientid, extract_body)\n.\n.\n.\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/googlemaps/client.py\", line 185, in _get\n base_url, accepts_clientid, extract_body)\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/googlemaps/client.py\", line 150, in _get\n raise googlemaps.exceptions.Timeout()\nTimeout\n\nWhere there are 12 copies of the following line:\n File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/googlemaps/client.py\", line 185, in _get\n base_url, accepts_clientid, extract_body)\n\nI was able to create a distance matrix using a different program but the same \nAPI key, but I am almost always unable to make any size matrix in this program \nfor the rest of the day. Something seems to reset after 24 hours though, as \nthe program works again as it should the next day.\n\nAny fixes or suggestions would be greatly appreciated, thanks!\n```\n\nOriginal issue reported on code.google.com by `akub...@g.hmc.edu` on 2 Jun 2015 at 6:13\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2016-03-28T19:47:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/344/google-api-python-client/issues/344"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a97a5af8-2988-ebe8-9ae5-637e332f17d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E52A:F9F81:1EF5E64:294229E:697D3882 |
| html-safe-nonce | a851474c4c88cabd9d7b6f9ae77496c1d4d0cdcf2e06ce493629ad2b96b43514 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTJBOkY5RjgxOjFFRjVFNjQ6Mjk0MjI5RTo2OTdEMzg4MiIsInZpc2l0b3JfaWQiOiI5ODE0ODc1NzMyMjQyMDg1MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ebef630894efeb8cc372abeae935ae360937f4381fbceec89b47ed174bc996f6 |
| hovercard-subject-tag | issue:144065919 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/1ap/google-api-python-client/344/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2d79e998abd0dbbb0158c676886b0cee41635b47005346cb5a15874e40aa692/1ap/google-api-python-client/issues/344 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2d79e998abd0dbbb0158c676886b0cee41635b47005346cb5a15874e40aa692/1ap/google-api-python-client/issues/344 |
| og:image:alt | What steps will reproduce the problem? 1. Running my program that calls the Google Maps Distance Matrix some (currently unknown) number of times What is the expected output? What do you see instead... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a3c7e308524eda8bf7076517aaba4e7e7984217dc521d1404369c0c497afdde |
| turbo-cache-control | no-preview |
| go-import | github.com/1ap/google-api-python-client git https://github.com/1ap/google-api-python-client.git |
| octolytics-dimension-user_id | 12863663 |
| octolytics-dimension-user_login | 1ap |
| octolytics-dimension-repository_id | 54918735 |
| octolytics-dimension-repository_nwo | 1ap/google-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 54918735 |
| octolytics-dimension-repository_network_root_nwo | 1ap/google-api-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b41f2aeb2bdce4f2f8278e78f7fe2b38a9cd441 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width