1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
    magoderre is on a distinguished road

      0  

    Default JsonReader for Google Direction API response

    JsonReader for Google Direction API response


    Is anybody knows how to set up a Ext.data.JsonReader to handle the response of Google Direction API.

    What I did and didn't work :

    Code:
    var jsonreader = new Ext.data.JsonReader({
                idProperty:'start_address',
                root:'legs',
                successProperty:'status',
                fields:[
                    {name:'distance', mapping:'distance'},
                    {name:'duration', mapping:'duration'},
                    {name:'adresseFin', mapping:'end_address'},
                    {name:'positionFin', mapping:'end_location'},
                    {name:'adresseDebut', mapping:'start_address'},
                    {name:'positionDebut', mapping:'start_location'},
                    {name:'etapes', mapping:'steps'},
                    {name:'escales', mapping:'via_waypoint'}
                ]
            });
            
            var jsonstore = new Ext.data.JsonStore({
                autoDestroy: true,
                url: request,
                storeId: 'GDirectionStore',
                reader:jsonreader
            });
    This is the response Json code:
    Code:
    {
       "routes" : [
          {
             "bounds" : {
                "northeast" : {
                   "lat" : 48.690290,
                   "lng" : -71.18001000000001
                },
                "southwest" : {
                   "lat" : 48.42483000000001,
                   "lng" : -71.85032000000001
                }
             },
             "copyrights" : "Données cartographiques ©2011 Google",
             "legs" : [
                {
                   "distance" : {
                      "text" : "47,1 km",
                      "value" : 47132
                   },
                   "duration" : {
                      "text" : "48 minutes",
                      "value" : 2886
                   },
                   "end_address" : "602-610 1re Rue, L'Ascension-de-Notre-Seigneur, QC G0W 1Y0, Canada",
                   "end_location" : {
                      "lat" : 48.690290,
                      "lng" : -71.671890
                   },
                   "start_address" : "Entree De L'Ecole, Métabetchouan--Lac-à-la-Croix, QC G8G 1P7, Canada",
                   "start_location" : {
                      "lat" : 48.43774000000001,
                      "lng" : -71.84831000000001
                   },
                   "steps" : [
                      {
                         "distance" : {
                            "text" : "0,2 km",
                            "value" : 167
                         },
                         "duration" : {
                            "text" : "1 minute",
                            "value" : 19
                         },
                         "end_location" : {
                            "lat" : 48.43835000000001,
                            "lng" : -71.85032000000001
                         },
                         "html_instructions" : "Prendre la direction \u003cb\u003eouest\u003c/b\u003e sur \u003cb\u003eEntree De L'Ecole\u003c/b\u003e vers \u003cb\u003eQC-169 N\u003c/b\u003e",
                         "polyline" : {
                            "points" : "{nsfH|zouLKrAKrAGh@WhAYz@g@x@"
                         },
                         "start_location" : {
                            "lat" : 48.43774000000001,
                            "lng" : -71.84831000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "1,0 km",
                            "value" : 1016
                         },
                         "duration" : {
                            "text" : "2 minutes",
                            "value" : 90
                         },
                         "end_location" : {
                            "lat" : 48.44166000000001,
                            "lng" : -71.83750000000001
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà droite\u003c/b\u003e sur \u003cb\u003eQC-169 S\u003c/b\u003e",
                         "polyline" : {
                            "points" : "ursfHngpuLmBiJqFy]iFo^Oy@U{@[eAIS"
                         },
                         "start_location" : {
                            "lat" : 48.43835000000001,
                            "lng" : -71.85032000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "14,6 km",
                            "value" : 14624
                         },
                         "duration" : {
                            "text" : "14 minutes",
                            "value" : 827
                         },
                         "end_location" : {
                            "lat" : 48.465760,
                            "lng" : -71.678240
                         },
                         "html_instructions" : "Continuer sur \u003cb\u003eQC-170 E\u003c/b\u003e",
                         "polyline" : {
                            "points" : "kgtfHjwmuLIUk@_A[m@c@_@g@i@_Ak@cA_@uDkAy_@aLgWwIgOqHiDyAiCs@uHsC{HiCkBs@mAo@y@_@sCgCcBuB_QuXgIqM}AkCy@wA}AgCi@u@_IgMgDuF_AaBwDcGmPyWsAyBwIkNk@{@Ua@g@aA}@sB}@aCc@}A[sA[wAi@eC]wBWaCSsBUiC[qDIuBAyBHyBXgCh@yEf@{ERqBbBoO`AeJB[zOazAX}DLcEC{BSoGk@{FeCmL{Koa@oBgH{AsFsA{H]}DGqB?mC?iBP}Eha@iyDd`@iwDhCeVt@iHhAeI|Ga`@|B_N`@mB"
                         },
                         "start_location" : {
                            "lat" : 48.44166000000001,
                            "lng" : -71.83750000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "24,5 km",
                            "value" : 24515
                         },
                         "duration" : {
                            "text" : "23 minutes",
                            "value" : 1389
                         },
                         "end_location" : {
                            "lat" : 48.63252000000001,
                            "lng" : -71.699990
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà gauche\u003c/b\u003e sur \u003cb\u003eQC-169 N/QC-170 E\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eContinuer de suivre QC-169 N\u003c/div\u003e",
                         "polyline" : {
                            "points" : "_~xfH~sntL}b@_O{DmAc@OkDeA{|Amg@geAk]wBm@eN_Fe]uKoHiBuScHg@Qi@O_`@uMeGwBcEuA{FqBq@QuAc@cEwAaQ{FmEuAmFoBsH_C{@[oWaJUIa[qKqIsCuAg@kC{@gCw@UI{@Yk@SqCaA]MgA[u@Yk@ScCy@c@Qw@U]QQGCC]Ie@MAAc@MeDiAmIuCeEwAu@]SIeBq@{@YgC{@iA]mCy@YKA?cDaAkA_@gA]aCq@{C}@uC}@}Ac@]Ge@Ik@?e@B[DSFi@Pc@R]RONQLMNYZW^k@dAo@tAs@bBGNg@fAu@rAc@l@e@b@e@b@]Rc@Tg@NYHo@L[Da@Do@@U?KAOAYEQCe@GEAMCKIcK_IeCoBUQm@e@mMqK_DyBs@g@k@e@k@e@IGGKMWoAwAoC}C{@kAsEwGq@eAuK_OaBiB{@iA]a@_@_@y@{@U?e@Ym@U[Ku@Mk@Ae@@e@@gATa@ROHi@d@qArA{@~@o@v@cBtBqGdIm@v@y@~@]d@eBvBi@r@QPa@^SJg@PMFUB]@_@Cg@Is@QgC_AcEwAoC}@mAa@aFaBoBu@g@MiA_@cAWeFeByG_DWKoEaBkBo@yB{@cKyDe@Sm@a@]Wk@m@sAmBmA_BsAwAc@]UMk@Yq@]iB_AcCkAsAs@a@Wu@g@YQUU[[CCU]Ua@Yk@]aAi@eBkAwEaDgMs@oCWy@Qc@[y@w@eAsAuAu@YaAa@yCiA_GuB}@YcAWq@Ik@Gg@CuAGy@@[@a@B_@Bi@JaANuJtCeDfAqBn@_Cv@w@Xu@XcAd@k@^q@f@_@^{@x@e@d@u@`Ak@|@s@nAq@fBo@pBUv@W`AS|@Mj@]vBw]rhDc@hEiCdWO~AU~BObBQnBOzAObBYrDyAbPq@zGkA~KkF`h@QxHFlL@~CArAMzAQ~AWzAOr@m@rBwChIo@nBe@fBYzAWjBOlAgElb@wAfNeAjK]zCm@hGSlBa@xD_@zDg@pEKhAc@|D"
                         },
                         "start_location" : {
                            "lat" : 48.465760,
                            "lng" : -71.678240
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "5,0 km",
                            "value" : 4994
                         },
                         "duration" : {
                            "text" : "7 minutes",
                            "value" : 414
                         },
                         "end_location" : {
                            "lat" : 48.67451000000001,
                            "lng" : -71.678190
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà droite\u003c/b\u003e sur \u003cb\u003eRue Joseph W. Fleury\u003c/b\u003e",
                         "polyline" : {
                            "points" : "gpygH|{rtLsCkAeBk@uEyAaAWyKyCk@SeA_@sA_@ga@aLiAy@wBsBkGkH_@e@}A}@_cAg\\}BoAo@{@_G{J_DkFoAsAu@k@srAs`@"
                         },
                         "start_location" : {
                            "lat" : 48.63252000000001,
                            "lng" : -71.699990
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "1,8 km",
                            "value" : 1816
                         },
                         "duration" : {
                            "text" : "2 minutes",
                            "value" : 147
                         },
                         "end_location" : {
                            "lat" : 48.690290,
                            "lng" : -71.671890
                         },
                         "html_instructions" : "Continuer sur \u003cb\u003e1re Rue\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eVotre destination se trouvera sur la droite\u003c/div\u003e",
                         "polyline" : {
                            "points" : "uvahHtsntLaqAs_@sIkCqC{@k@O"
                         },
                         "start_location" : {
                            "lat" : 48.67451000000001,
                            "lng" : -71.678190
                         },
                         "travel_mode" : "DRIVING"
                      }
                   ],
                   "via_waypoint" : []
                },
                {
                   "distance" : {
                      "text" : "61,4 km",
                      "value" : 61353
                   },
                   "duration" : {
                      "text" : "1 heure 10 minutes",
                      "value" : 4215
                   },
                   "end_address" : "1920-1946 Rue Davis, Jonquière, QC G7S 3B6, Canada",
                   "end_location" : {
                      "lat" : 48.42483000000001,
                      "lng" : -71.18242000000001
                   },
                   "start_address" : "602-610 1re Rue, L'Ascension-de-Notre-Seigneur, QC G0W 1Y0, Canada",
                   "start_location" : {
                      "lat" : 48.690290,
                      "lng" : -71.671890
                   },
                   "steps" : [
                      {
                         "distance" : {
                            "text" : "1,8 km",
                            "value" : 1816
                         },
                         "duration" : {
                            "text" : "2 minutes",
                            "value" : 147
                         },
                         "end_location" : {
                            "lat" : 48.67451000000001,
                            "lng" : -71.678190
                         },
                         "html_instructions" : "Prendre la direction \u003cb\u003esud\u003c/b\u003e sur \u003cb\u003e1re Rue\u003c/b\u003e vers \u003cb\u003e3e Av E\u003c/b\u003e",
                         "polyline" : {
                            "points" : "iydhHhlmtLj@NpCz@rIjC`qAr_@"
                         },
                         "start_location" : {
                            "lat" : 48.690290,
                            "lng" : -71.671890
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "5,0 km",
                            "value" : 4994
                         },
                         "duration" : {
                            "text" : "7 minutes",
                            "value" : 404
                         },
                         "end_location" : {
                            "lat" : 48.63252000000001,
                            "lng" : -71.699990
                         },
                         "html_instructions" : "Continuer sur \u003cb\u003eRue Joseph W. Fleury\u003c/b\u003e",
                         "polyline" : {
                            "points" : "uvahHtsntLrrAr`@t@j@nArA~CjF~FzJn@z@|BnA~bAf\\|A|@^d@jGjHvBrBhAx@fa@`LrA^dA^j@RxKxC`AVtExAdBj@rCjA"
                         },
                         "start_location" : {
                            "lat" : 48.67451000000001,
                            "lng" : -71.678190
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "7,7 km",
                            "value" : 7665
                         },
                         "duration" : {
                            "text" : "8 minutes",
                            "value" : 464
                         },
                         "end_location" : {
                            "lat" : 48.604790,
                            "lng" : -71.61777000000001
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà gauche\u003c/b\u003e sur \u003cb\u003eAvenue du Pont N/QC-169 S\u003c/b\u003e",
                         "polyline" : {
                            "points" : "gpygH|{rtLb@}DJiAf@qE^{D`@yDRmBl@iG\\{CdAkKvAgNfEmb@NmAVkBX{Ad@gBn@oBvCiIl@sBNs@V{AP_BL{A@sAA_DGmLPyHjFah@jA_Lp@{GxAcPXsDNcBN{APoBNcBT_CN_BhCeWb@iEv]shD\\wBLk@R}@VaATw@n@qBp@gBr@oAj@}@t@aAd@e@z@y@^_@p@g@j@_@bAe@t@Yv@Y~Bw@pBo@dDgAtJuC`AOh@K^C`@CZAx@AtAFf@Bj@Fp@HbAV|@X~FtBxChA`A`@t@XrAtA"
                         },
                         "start_location" : {
                            "lat" : 48.63252000000001,
                            "lng" : -71.699990
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "31,3 km",
                            "value" : 31291
                         },
                         "duration" : {
                            "text" : "29 minutes",
                            "value" : 1765
                         },
                         "end_location" : {
                            "lat" : 48.507310,
                            "lng" : -71.27524000000001
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà gauche\u003c/b\u003e sur \u003cb\u003eQC-172 E\u003c/b\u003e (panneaux vers \u003cb\u003eSaint-Nazaire/Chicoutimi\u003c/b\u003e)",
                         "polyline" : {
                            "points" : "}btgH`zbtLf@yAX}@ZqApAcGdB{H`Kme@BMbCeLnAkGnC_NfAkFv@cDlAiF~AyG|@wDNw@Jc@f@yCp@kE~@_GpAcI~@}Ft@qDTeAVaARo@`@qAd@}Ax@cCf@gB^{ATiAHa@TwAR}A`@}Cb@oDNgBHiADaAFaAHyCJoDHqCHoDFuBHaDLgEDkADcBJqDFyBFwADeAFaAJkAFm@J}@Hi@Ny@P}@Pw@Ni@J_@J_@Pi@J[Vm@Tm@Rg@^}@Ra@Rk@Vq@Rm@Tu@Nk@Pu@Lq@Lq@Jk@F_@DWFi@vBeR@OjDsZz@wHfAwJbCwSnAsJBa@BWBW@[@]@c@@e@D{B@eABu@Bg@Dk@Da@D]Ha@J_@Je@Je@j@yB`@aB\\yAReAP}A`AaI|CiX~@kIz@gH~@yG`@aCv@cEn@_Dh@oCVyAb@eCNiANkBDs@JkBFyAFgC@_B@_ABm@FwAFuALmBLuALmBRuBLqAPsBLmADs@TwBFa@P_BV}AV{Ab@_Cb@}Br@aEb@wCd@{DVaCRcBXeCZeC\\oCRiB\\eCZeCTiBRoBZyBTkB\\kCXsBReB\\qC|@qGf@eD^mCb@qC`@oClAoI`AmHdAuJl@qGb@}Ep@uH\\aEBU|Eay@HmAFiAFq@H{@LaALcAPcAP}@R_APaAXoARcAP{@P}@d@}BZcBj@uCJk@JaAPeBDeABg@@c@?c@@c@?a@Ac@Ac@Ae@Aa@AIAYCc@Ea@Ea@Ec@Ko@O_AYmA{@kDqAcEuAgFuA_Fg@oB}@{Ck@qBCG}@eDaA}Cy@{B}BkEkAqByEiIIKgAoBgByCoAwBwAsCe@uAY_AQy@g@{CSuBYiEc@sG[{EMwB_@sFYeEc@sGg@{Hc@yGMaEAmC?_D@}@JaILyKFwEHsCHmCPyEb@qKPeFDgBH}AHqAFeAJgADc@Hq@RyAZaBfAmEzBcJnAqEdAmDdBgGzB{Hz@eDbBwFNg@fAiD~DsM|E}Mz@eCx@}BVaAVaARaAViBJgAHiADkABqB@eAAw@KuGIqEQ_MAg@MgHCeBBgBBy@Dk@Dq@De@Lw@Jw@pA_HdA_GPoAJuADy@?uCCoBE_EAuBEyCCcDEiH@gFBuC@kADiAFeAJmBXgCZqB^{CHcBFiBA_CI}Aa@gDa@cCq@cEYgCKgBAgB?_BB}@HoAd@eGvG_y@nBcVdAkMlLeyAX{Df@{GTiCLiBNkBXgCToANo@J[J[L[\\q@`@q@b@g@f@e@j@]TKVITGl@KtBSnDWfAIdD[~@UpAs@nAeA|B_C`AuAh@_Ax@eBXy@`@iAX}@H_@Lk@Lq@BQNmAZkDVeD\\wDDm@FaAHgBBu@@M?GBSFKFEDCFEREn@KfDc@b@Gl@IfCYtBSlFe@F?pHs@zCWfCYxAWvB]hB]z@UdAa@jD{A`HcDlCqA|@e@^Sl@a@\\[\\]Za@Ze@h@_Aj@mAh@}A`@gB^iCr@oFToBRwAh@gEn@gFp@iFf@yDf@aE|@eH`@aD\\aCXaCZaCtAyKxAiLdAyIp@gFr@qFb@iDf@}Cf@yBd@uAL]Zy@l@qA|@{Ar@_Ah@m@|@y@|@q@`Ag@nAe@pAUl@IzAGzADtANbFh@xCZ`CXzIz@dEf@`Gn@~@P~@PhBf@h@PxAl@tClApAd@|@XNDZFxATbAJ|AB`@Ab@At@E|@Mn@MbAWbA_@bAc@rAu@pCsBpCoBdDaCnA}@bBkAnA}@jCqBjAgAx@w@t@_Av@aAvAsBfBsCfBsCjB{CzAeChAiBnB}CjB}CnB}C`B_CfDaEhB}Bb@s@t@sA`@}@j@cB\\gARy@R_AN}@nBwM"
                         },
                         "start_location" : {
                            "lat" : 48.604790,
                            "lng" : -71.61777000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "4,3 km",
                            "value" : 4315
                         },
                         "duration" : {
                            "text" : "6 minutes",
                            "value" : 356
                         },
                         "end_location" : {
                            "lat" : 48.471080,
                            "lng" : -71.277230
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà droite\u003c/b\u003e sur \u003cb\u003eRoute Coulombe\u003c/b\u003e (panneaux vers \u003cb\u003eSHIPSHAW/JONQUIĖRE\u003c/b\u003e)",
                         "polyline" : {
                            "points" : "uaagHf}_rLZWNOHIF?PEROXYlAiBx@oAV_@PUn@_ALSj@y@NSZa@^a@TQ^WXMd@SpAc@x@Wf@Q|@WtDgAh@SfAKjBGnACjAAfBA~CA|BA`@@V?P@NBTDXHf@P\\NZNd@Xl@f@jAlAtBhC|JlLtHbJb@b@XTRNTN\\Pn@Xb@N^J\\J\\@^B`@?`@A`@C~@KlBY|AUpASz@KvAUdBWrDk@nB[fB]|FoAfBa@tCm@zA]xCm@dE}@fB[jAQ^Cr@@r@DrBXlCd@fB\\bC`@~LpBb@HtCf@|Bd@XH^NVJRLr@f@n@l@lA~@"
                         },
                         "start_location" : {
                            "lat" : 48.507310,
                            "lng" : -71.27524000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "2,4 km",
                            "value" : 2385
                         },
                         "duration" : {
                            "text" : "4 minutes",
                            "value" : 235
                         },
                         "end_location" : {
                            "lat" : 48.45760000000001,
                            "lng" : -71.25544000000001
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà gauche\u003c/b\u003e sur \u003cb\u003eRoute Saint Léonard\u003c/b\u003e",
                         "polyline" : {
                            "points" : "g_zfHti`rLfF_PjBaGbBgFvAsElC_JbC{HzA{ElAaEnAaEL_@LYJY^u@\\o@Zg@LQLO\\_@VY^]`@c@r@YNIDANINGd@Mf@K`@I|@A~FMdDCjACd@Eb@GLCNEJEJE`@Q\\U^[DEV[T]T_@P_@FOFOFQPq@Je@RaALy@Jw@Hg@Fe@|@iHl@yEl@_E"
                         },
                         "start_location" : {
                            "lat" : 48.471080,
                            "lng" : -71.277230
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "2,1 km",
                            "value" : 2145
                         },
                         "duration" : {
                            "text" : "3 minutes",
                            "value" : 170
                         },
                         "end_location" : {
                            "lat" : 48.44410000000001,
                            "lng" : -71.23870000000001
                         },
                         "html_instructions" : "Continuer sur \u003cb\u003eChemin de Saint Léonard/Route de la Dam Deux\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eContinuer de suivre Route de la Dam Deux\u003c/div\u003e",
                         "polyline" : {
                            "points" : "_kwfHna|qLb@sDFa@Fa@Hc@Jc@Le@Ng@Rk@r@_Bb@oAZgA|@aDp@aCbAmD`A}Dv@qDd@uCJi@J_@H]NURUbAFxC`@~@L|FdArAP`@Ef@Cp@g@l@gAhGkNvAaDz@qAv@cA~@aAd@c@FCHGj@_@fDaBZS\\W^[^]^c@dAmA~B_DdB{B"
                         },
                         "start_location" : {
                            "lat" : 48.45760000000001,
                            "lng" : -71.25544000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "1,4 km",
                            "value" : 1410
                         },
                         "duration" : {
                            "text" : "2 minutes",
                            "value" : 146
                         },
                         "end_location" : {
                            "lat" : 48.43197000000001,
                            "lng" : -71.237740
                         },
                         "html_instructions" : "Prendre légèrement \u003cb\u003eà droite\u003c/b\u003e sur \u003cb\u003eRue Price\u003c/b\u003e",
                         "polyline" : {
                            "points" : "svtfHzxxqLj@MHCF?H?H?|@Lf@RVFpB\\dANlC^t@Hb@BZBb@@p@C^Gb@Mf@Wd@Yh@g@bEsEXWROZQ`@Sn@S\\KJCVAT?T@PBH@NBRDbAX`Bf@PB`@F^@N@NAN?NALCTEvBm@VIVGTGVCTCV?V?T@VBTDdBZJBLDNPRHNFTHB@PFn@P"
                         },
                         "start_location" : {
                            "lat" : 48.44410000000001,
                            "lng" : -71.23870000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "4,3 km",
                            "value" : 4336
                         },
                         "duration" : {
                            "text" : "7 minutes",
                            "value" : 411
                         },
                         "end_location" : {
                            "lat" : 48.432740,
                            "lng" : -71.18005000000001
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà gauche\u003c/b\u003e sur \u003cb\u003eBoulevard du Saguenay\u003c/b\u003e (panneaux vers \u003cb\u003eAutoroute 70/QC-372/kenogami/Chicoutimi\u003c/b\u003e)",
                         "polyline" : {
                            "points" : "yjrfHzrxqLB[n@wIv@wJHcAhAkLl@}Gj@qGlAoMRoCfBaSD]Da@BYB_@B[Do@@g@Bu@Bq@?e@@a@?Y?e@@i@?}@AuGAgCHa@AkGAaF?eBAs@AyACeCGiCCo@EeAKkC[kFeIsjAQqBWwBs@_GKw@qAaJ_AiHUsCKgBGiDAkD?c@AoGDsB@]AyR@oLCyC@O?G?O?M?I"
                         },
                         "start_location" : {
                            "lat" : 48.43197000000001,
                            "lng" : -71.237740
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "0,8 km",
                            "value" : 848
                         },
                         "duration" : {
                            "text" : "1 minute",
                            "value" : 86
                         },
                         "end_location" : {
                            "lat" : 48.425470,
                            "lng" : -71.18127000000001
                         },
                         "html_instructions" : "Au rond-point, prendre la \u003cb\u003e1ère\u003c/b\u003e sortie sur \u003cb\u003eBoulevard Mellon\u003c/b\u003e",
                         "polyline" : {
                            "points" : "sorfHhjmqL@ABABCf@?vAl@dGpD~FlCdAh@hD\\T?T?RCPCNENELIVElD_AfBc@l@QRG|@W"
                         },
                         "start_location" : {
                            "lat" : 48.432740,
                            "lng" : -71.18005000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "0,1 km",
                            "value" : 100
                         },
                         "duration" : {
                            "text" : "1 minute",
                            "value" : 17
                         },
                         "end_location" : {
                            "lat" : 48.42525000000001,
                            "lng" : -71.182580
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà droite\u003c/b\u003e sur \u003cb\u003eRue Marion\u003c/b\u003e",
                         "polyline" : {
                            "points" : "ebqfH|qmqLTbCT`C"
                         },
                         "start_location" : {
                            "lat" : 48.425470,
                            "lng" : -71.18127000000001
                         },
                         "travel_mode" : "DRIVING"
                      },
                      {
                         "distance" : {
                            "text" : "48 m",
                            "value" : 48
                         },
                         "duration" : {
                            "text" : "1 minute",
                            "value" : 14
                         },
                         "end_location" : {
                            "lat" : 48.42483000000001,
                            "lng" : -71.18242000000001
                         },
                         "html_instructions" : "Prendre \u003cb\u003eà gauche\u003c/b\u003e sur \u003cb\u003eRue Davis\u003c/b\u003e",
                         "polyline" : {
                            "points" : "y`qfHbzmqLrA_@"
                         },
                         "start_location" : {
                            "lat" : 48.42525000000001,
                            "lng" : -71.182580
                         },
                         "travel_mode" : "DRIVING"
                      }
                   ],
                   "via_waypoint" : []
                }
             ],
             "overview_polyline" : {
                "points" : "{nsfH|zouLw@zGaAtB_Jci@kHkd@{AwCoEuCoe@mNgWwIgOqHsHmCqR}GyDcBmEgDia@io@aO}U{l@y`AgEuK_CiL}AqPVqNdYymCH_I_AkOmVy_AqByNG_GPgInbAsqJ~Do_@fJgj@~CmQyh@mQsiDohA}QmGuf@_Ogw@{WwVqIwkA{`@et@oVcWuI{u@}VmLgDsC?iEjCqHxNmCpBmCl@uEM{`@i[{KqJc`@}g@uCuBkDq@uDl@gEbE{T|XoBnAaBHw]kL{KkDmR}HqQkHkFsGyD}CsJ}EsEgEmLab@sA_CiCoByO{FiEm@mE?aOtDoMhEwEfCwD`EaEfJoAbFkf@nxEsCv[}BzT}Fzq@E|VgBbJgG|RgInw@{Gpp@c@|DsCkA{HeCmQeF{c@aMaEmDkHqI}eAe^mDkC_LgReC_CudDgaAeNgEk@Oj@NdNfEtdDfaAdC~B~KfRlDjC|eAd^lN~Nlg@tNvWvHrCjAb@}Dr@{GbCmVbK}bAfB}JdGaRx@kJImQ|F{q@pFsk@`AsKjf@euEnCsIzDuFxDaDpHqCnU}GfCUbFPrLpDzEjBhCnBnDmNn]y`BzFsVdDiS|EyXrBaHvCqKtAuJjBa]hAkb@nA{NtHkU~AsI`SgeBVuJz@qHvB{IdGog@|Eo_@hDmQhAoJ\\mLrAcUzB_ThGua@lMacArD_WxEsc@tIuqAnIcf@HcI]wFwKeb@kD{LeIwQsK_RgFaLgBuOmB{YiCo`@MmP|Bg`ApAuQrS}v@fVau@nAuHTmIy@}n@fEmYb@uJQ_QVuc@~AyNe@oNyBwPJuIx^}sElAmLt@cCjCqDnB{@zKaAdFq@`DyBbH{J~AaFfCuVj@{GrMkBrc@uEvKqDlOoHdC}BzCqGjHci@xIcr@dG}e@xCwOtCeGxEyEpGmBpNv@|XxCjNzBnPpFfFJfFy@lJmFjN{J`JoHlHiKfXyb@jJgM~BcHnDmRr@_@|GmJvBqCtBkApFeB~E{ArDSbLIhE@tFfC|]ba@pCfA|BPtPwBha@{HrOyCzF\\jc@xH~BpA|BlBrIaXlMwa@fG_SlDcGbEsClDe@vO[xDaBrBqDnIck@jI}WjDoPx@iBzO|BtBJxAk@jMgXdDmDvJsGdEmFpCiCd@C|OdCpCEzCgBlGmGzBw@fEh@tFr@nGyArFp@hAl@THr@IzD_e@zDoc@fCoZHyn@UeK_K}yAiDqWiBoU?ux@JgA~Bl@dO~HzGfA`KgC`AY|@WTbCT`CrA_@"
             },
             "summary" : "QC-172 E",
             "warnings" : [],
             "waypoint_order" : [ 0 ]
          }
       ],
       "status" : "OK"
    }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,656
    Vote Rating
    903
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Does it support ScriptTagProxy?

    You may need to create an extension of JsonReader to modify the incoming JSON so that it can consume it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread