{"action":"created","issue":{"url":"https://api.github.com/repos/hansemannn/ti.googlemaps/issues/80","repository_url":"https://api.github.com/repos/hansemannn/ti.googlemaps","labels_url":"https://api.github.com/repos/hansemannn/ti.googlemaps/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/hansemannn/ti.googlemaps/issues/80/comments","events_url":"https://api.github.com/repos/hansemannn/ti.googlemaps/issues/80/events","html_url":"https://github.com/hansemannn/ti.googlemaps/issues/80","id":207156401,"number":80,"title":"decodePolylinePoints not working/empty","user":{"login":"m1ga","id":4334997,"avatar_url":"https://avatars.githubusercontent.com/u/4334997?v=3","gravatar_id":"","url":"https://api.github.com/users/m1ga","html_url":"https://github.com/m1ga","followers_url":"https://api.github.com/users/m1ga/followers","following_url":"https://api.github.com/users/m1ga/following{/other_user}","gists_url":"https://api.github.com/users/m1ga/gists{/gist_id}","starred_url":"https://api.github.com/users/m1ga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1ga/subscriptions","organizations_url":"https://api.github.com/users/m1ga/orgs","repos_url":"https://api.github.com/users/m1ga/repos","events_url":"https://api.github.com/users/m1ga/events{/privacy}","received_events_url":"https://api.github.com/users/m1ga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-02-13T09:03:02Z","updated_at":"2017-02-13T13:52:26Z","closed_at":null,"body":"```\r\nmaps.getDirections({\r\n        origin: 'Mountain View, CA',\r\n        destination: 'San Francisco, CA',\r\n        success: function(e) {\r\n            console.log(e);\r\n            console.log(e.routes[0].overview_polyline.points);\r\n            console.log(maps.decodePolylinePoints(e.routes[0].overview_polyline.points));\r\n            //mapView.addPolyline(maps.decodePolylinePoints(e.routes[0].overview_polyline));\r\n        },\r\n        error: function(e) {\r\n            Ti.API.error('Error: ' + e.error);\r\n        },\r\n        // Optional\r\n        waypoints: ['Cupertino, CA', 'via:Sunnyvale, CA'],\r\n    });\r\n```\r\n\r\noutput is:\r\n\r\n```\r\n{ geocoded_waypoints: \r\n   [ { place_id: 'ChIJiQHsW0m3j4ARm69rRkrUF3w',\r\n       types: [Object],\r\n       geocoder_status: 'OK' },\r\n     { place_id: 'ChIJq3fTG1e0j4ARtHjho-E_TTk',\r\n       types: [Object],\r\n       geocoder_status: 'OK' },\r\n     { place_id: 'ChIJO13QqUW2j4ARosN83Sb7jXY',\r\n       types: [Object],\r\n       geocoder_status: 'OK' },\r\n     { place_id: 'ChIJIQBpAG2ahYAR_6128GcTUEo',\r\n       types: [Object],\r\n       geocoder_status: 'OK' } ],\r\n  status: 'OK',\r\n  routes: \r\n   [ { bounds: [Object],\r\n       summary: 'CA-85 S',\r\n       waypoint_order: [],\r\n       legs: [Object],\r\n       warnings: [],\r\n       copyrights: 'Map data ©2017 Google',\r\n       overview_polyline: [Object] } ] }\r\n[Ti:INFO] u}dcFrnchVd@XXLHQnA_DlB_FfDkItF{NzM{\\hEaNxAyEh@gBPo@J?NBn@X^JdAIb@YxByBz@W~A?n@BTKdADhB@r@AbBMxCk@~CoAzKyFtY}NjEiAhFa@t\\L`EKjGu@lGyAzDsArGgCdGmBrE_A`Fi@xFUnl@CpOGrD[zDiA|DaBbEkC~CuCjIsItJ_KtFqFvE_DbEmBvDeAzCK~FUvGQ@yB?m@GaP@wb@E_r@?eD@o@_@?{F@wG@q]AuL?}I@}P@yrAN_NK{I?mHJkKKe\\EsBRsCpA_CpDyBhFwB~EoApBwA~@yA\\oG@YCFo@z@iIl@yDn@qDAMSY_G{AuFqAg@MHPHl@]`DuBxP{JcC{N_DoKwCuFs@gIaBeZcHePuDcGu@cHq@wFoAgTaFgX{Eq@oANoAb@_@f@?\\TTf@@pAE`BoHpj@gDxVaHth@mGtd@}D~TaCpOsJpt@}AjKmA|E{@vCcMjb@wIhZ_EnL}EbJuKtPuQvXkRtYuJtNgU~V}U`Wux@h{@kb@ld@}JhKoMlNuFxIi^ht@g}Av_Dyt@tzAgGxMgDdKyA~FeD`PcArGkBdQeMhqB}A|O}ArKeBbJeFfRyQni@sCxJuBhJ{Khl@uBpIcAfDaB~DiEhH}Wl[a~@pfA_dA~lA_\\x_@eNdOqa@b_@mn@`k@kz@~u@ib@p_@gDbDqKpLif@dj@an@|q@}l@xp@{IhKiAlBmAbDwAvGYzCU`HmAdxAO`WUbG_@bEo@zEoBrIwCbIiBvDei@v_Aym@ffAgp@njAgBlCsChD_ErDuBxAgFlC}FfBkq@dP_H~AyI~AwRnAkNdAsJjByCbAiKlEiFdBgDt@eGr@sI\\wb@lBoUbAqEDcDOkHmAkNuF{DuBaBqAqEkFwHgNiH}LgDsEeFqFoWkVkFeE_JuF{JkEkI}BcEc@cBI_DDuN~Ach@dHilAhP_v@nKgMfByEtAoB~@aJzGgF~CwF|AsFx@eEv@aBZyMfDwM`EeQpEqGlByC|AuQ`IkDbBaJtEwGxCeCp@mDf@qEH}BM}AYgEcAiDeBoJgHmD{AaOaDcK{BcJoBeEc@mCEqERiKd@yCl@mCdBuFvHyAtAsCfAcCNuC]mCkA}A}@qCeAeC]gEQaB?a@Jq@JaH`@aAPw@b@}BtCkDhFkB|DGn@@l@\\pAt@~ALt@WbISxUMpG_AvMc@`Mu@zCaAfB_A`AyCjBiA_BqDqEeBwCgA{A}@oASBoBoC\r\n[Ti:INFO] []\r\n```\r\n\r\n`decodePolylinePoints()` is empty and will crash the app when uncomment the `mapView.addPolyline(...)`line"},"comment":{"url":"https://api.github.com/repos/hansemannn/ti.googlemaps/issues/comments/279397751","html_url":"https://github.com/hansemannn/ti.googlemaps/issues/80#issuecomment-279397751","issue_url":"https://api.github.com/repos/hansemannn/ti.googlemaps/issues/80","id":279397751,"user":{"login":"yozef","id":287256,"avatar_url":"https://avatars.githubusercontent.com/u/287256?v=3","gravatar_id":"","url":"https://api.github.com/users/yozef","html_url":"https://github.com/yozef","followers_url":"https://api.github.com/users/yozef/followers","following_url":"https://api.github.com/users/yozef/following{/other_user}","gists_url":"https://api.github.com/users/yozef/gists{/gist_id}","starred_url":"https://api.github.com/users/yozef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozef/subscriptions","organizations_url":"https://api.github.com/users/yozef/orgs","repos_url":"https://api.github.com/users/yozef/repos","events_url":"https://api.github.com/users/yozef/events{/privacy}","received_events_url":"https://api.github.com/users/yozef/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T13:52:26Z","updated_at":"2017-02-13T13:52:26Z","body":"I think I know whats the issue:\r\n```\r\nTi.API.info(\"points \" + points);\r\nTi.API.info(\"typeof points: \" + typeof points); // is Object and not an Array\r\n```\r\n\r\nTry: `var pointsArr = [points]` to make it into an array (or ideally the module should return as a Ti Array Obj."}}
{"actor":{"display_login":"yozef"}}