{"action":"created","issue":{"url":"https://api.github.com/repos/SymbolixAU/googleway/issues/93","repository_url":"https://api.github.com/repos/SymbolixAU/googleway","labels_url":"https://api.github.com/repos/SymbolixAU/googleway/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/SymbolixAU/googleway/issues/93/comments","events_url":"https://api.github.com/repos/SymbolixAU/googleway/issues/93/events","html_url":"https://github.com/SymbolixAU/googleway/issues/93","id":271185922,"number":93,"title":"google_distance >> lexical error: invalid char in json text","user":{"login":"wsamuelw","id":21352640,"avatar_url":"https://avatars2.githubusercontent.com/u/21352640?v=4","gravatar_id":"","url":"https://api.github.com/users/wsamuelw","html_url":"https://github.com/wsamuelw","followers_url":"https://api.github.com/users/wsamuelw/followers","following_url":"https://api.github.com/users/wsamuelw/following{/other_user}","gists_url":"https://api.github.com/users/wsamuelw/gists{/gist_id}","starred_url":"https://api.github.com/users/wsamuelw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsamuelw/subscriptions","organizations_url":"https://api.github.com/users/wsamuelw/orgs","repos_url":"https://api.github.com/users/wsamuelw/repos","events_url":"https://api.github.com/users/wsamuelw/events{/privacy}","received_events_url":"https://api.github.com/users/wsamuelw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-04T11:40:49Z","updated_at":"2018-04-30T23:26:15Z","closed_at":"2017-12-08T21:11:35Z","author_association":"NONE","body":"I have a data frame of 400+ locations stored in df SUBURB. I am trying to use the google_distance function to get the distance from A to B (many locations to one). It works fine when I am only doing [1:40]. \r\n\r\nHere are some sample values in the df.\r\n\r\n`head(SUBURB$Full_Suburb)`\r\n[1] \"ALTONA NORTH, Victoria, Australia\"  \"BACCHUS MARSH, Victoria, Australia\" \"DIAMOND CREEK, Victoria, Australia\"\r\n[4] \"ELWOOD, Victoria, Australia\"        \"KEILOR EAST, Victoria, Australia\"   \"MORDIALLOC, Victoria, Australia\"  \r\n\r\nWith the following code, I am doing [1:41]. I get this error below.\r\n\r\nError: lexical error: invalid char in json text.\r\n                                       https://maps.googleapis.com/map\r\n                     (right here) ------^\r\n\r\n```\r\ndist <- google_distance(origins = SUBURB$Full_Suburb[1:41],\r\n                              destinations = SUBURB$Destination[1],\r\n                              mode = \"driving\",\r\n                              arrival_time = local,\r\n                              key = key,\r\n                              simplify = T)\r\n```\r\n\r\nI have also tried turning this df into a list to see if it works. I got the same error.\r\n\r\n```\r\ndist <- google_distance(origins = sub[1:45],\r\n                               destinations = des[1],\r\n                               mode = \"driving\",\r\n                               arrival_time = local,\r\n                               key = key,\r\n                               simplify = T)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/SymbolixAU/googleway/issues/comments/385558049","html_url":"https://github.com/SymbolixAU/googleway/issues/93#issuecomment-385558049","issue_url":"https://api.github.com/repos/SymbolixAU/googleway/issues/93","id":385558049,"user":{"login":"SymbolixAU","id":18344164,"avatar_url":"https://avatars2.githubusercontent.com/u/18344164?v=4","gravatar_id":"","url":"https://api.github.com/users/SymbolixAU","html_url":"https://github.com/SymbolixAU","followers_url":"https://api.github.com/users/SymbolixAU/followers","following_url":"https://api.github.com/users/SymbolixAU/following{/other_user}","gists_url":"https://api.github.com/users/SymbolixAU/gists{/gist_id}","starred_url":"https://api.github.com/users/SymbolixAU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SymbolixAU/subscriptions","organizations_url":"https://api.github.com/users/SymbolixAU/orgs","repos_url":"https://api.github.com/users/SymbolixAU/repos","events_url":"https://api.github.com/users/SymbolixAU/events{/privacy}","received_events_url":"https://api.github.com/users/SymbolixAU/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T23:26:15Z","updated_at":"2018-04-30T23:26:15Z","author_association":"OWNER","body":"@qilingit Can you give a single row of `geoCodingInfo` which causes the error?"}}
{"actor":{"display_login":"SymbolixAU"}}