google查找两地点之间的路线信息接口

google查找两地点之间的路线信息接口

作者:admin |  时间:2014-02-17 |  浏览:623 |  0 条评论
<DirectionsResponse>
<status>OK</status>
<route>
<summary>G6京藏高速</summary>
<leg>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9680800</lat>
<lng>116.4899300</lng>

</start_location>
<end_location>
<lat>39.9803400</lat>
<lng>116.4897600</lng>

</end_location>
<polyline>
<points>
og}rFa}~eUsA@iPJsA?{C?qG@E?oD@{A?O?K?aE@_@?W?eA@oJDQ?E?eGBK@K?
</points>

</polyline>
<duration>
<value>154</value>
<text>3 分钟</text>

</duration>
<html_instructions>从<b>酒仙桥路</b>向<b>北</b>行驶,到<b>将台西路</b></html_instructions>
<distance>
<value>1363</value>
<text>0.8 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9803400</lat>
<lng>116.4897600</lng>

</start_location>
<end_location>
<lat>39.9803400</lat>
<lng>116.4890000</lng>

</end_location>
<polyline>
<points>ct_sF_|~eU?X?^?|A</points>
</polyline>
<duration>
<value>5</value>
<text>1 分钟</text>

</duration>
<html_instructions>在<b>万红路口</b>向<b>左</b>转,进入<b>芳园西路</b></html_instructions>
<distance>
<value>65</value>
<text>213 英尺</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9803400</lat>
<lng>116.4890000</lng>

</start_location>
<end_location>
<lat>39.9843600</lat>
<lng>116.4828200</lng>

</end_location>
<polyline>
<points>
ct_sFgw~eUI^ITIP[l@k@`Ac@~@iD~FsAzB}AlCq@fA{BzDs@fAOVkAlB
</points>

</polyline>
<duration>
<value>63</value>
<text>1 分钟</text>

</duration>
<html_instructions>稍微向<b>右</b>转,进入<b>万红西街</b></html_instructions>
<distance>
<value>692</value>
<text>0.4 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9843600</lat>
<lng>116.4828200</lng>

</start_location>
<end_location>
<lat>39.9843000</lat>
<lng>116.4827600</lng>

</end_location>
<polyline>
<points>gm`sFsp}eUJJ</points>
</polyline>
<duration>
<value>0</value>
<text>1 分钟</text>

</duration>
<html_instructions>在<b>万红西街口</b>向<b>左</b>转,进入<b>京密路</b></html_instructions>
<distance>
<value>8</value>
<text>26 英尺</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9843000</lat>
<lng>116.4827600</lng>

</start_location>
<end_location>
<lat>39.9843300</lat>
<lng>116.4826000</lng>

</end_location>
<polyline>
<points>{l`sFgp}eUE^</points>
</polyline>
<duration>
<value>64</value>
<text>1 分钟</text>

</duration>
<html_instructions>在第一个路口向<b>右</b>转,朝<b>广顺南大街</b>行进</html_instructions>
<distance>
<value>14</value>
<text>46 英尺</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9843300</lat>
<lng>116.4826000</lng>

</start_location>
<end_location>
<lat>39.9741500</lat>
<lng>116.4713200</lng>

</end_location>
<polyline>
<points>
am`sFgo}eULNHH`BjB|BjCxAbBxCjD`EpEhBpBVZFFHJnC`D~@fAVZvBdCtDlEbCnCxDjEzAdBt@|@jE~E
</points>

</polyline>
<duration>
<value>94</value>
<text>2 分钟</text>

</duration>
<html_instructions>在<b>万红西街口</b>向<b>左</b>转,进入<b>京密路</b></html_instructions>
<distance>
<value>1485</value>
<text>0.9 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9741500</lat>
<lng>116.4713200</lng>

</start_location>
<end_location>
<lat>39.9886200</lat>
<lng>116.4102800</lng>

</end_location>
<polyline>
<points>
mm~rFwh{eUh@bBz@jCLj@Lp@J`A?@FjABd@@r@Ab@?@?h@Cl@En@Gj@M~@SbA[|A?@ILw@~Ak@nAg@~@}@`CiApB{@|AKPm@fAc@v@kFfJiAnByDvGwFxJmCtEu@nAS\Ub@MRq@lAkApBwChF_A|AkAtBwBtDyAhCuBpDgAnBy@zAA@i@hAMXUn@g@rAMb@Qh@Sr@uEjPYbAe@~AQl@[bACJaAfDELuBnIWpA[vBOz@MdBAD?DGrAK~C?b@@pA@pA?pB@bCBfEBrDH|KBxCDvEDfFLnO?DBhB?NDlCBvBP~RDrDFlG@b@?f@DxDB~BJnN@pBBtCF`G
</points>

</polyline>
<duration>
<value>320</value>
<text>5 分钟</text>

</duration>
<html_instructions>上匝道走<b>北四环东路</b></html_instructions>
<distance>
<value>5799</value>
<text>3.6 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9886200</lat>
<lng>116.4102800</lng>

</start_location>
<end_location>
<lat>39.9879400</lat>
<lng>116.3843400</lng>

</end_location>
<polyline>
<points>
{gasFgkoeUBtBDhEDtE@`@BzD@ZBdGBvCFxGBhC@pADpFPlQ?fARhRDlEPjQ@t@?D@xB?`EAtB?TA\?X@j@?JF`IJ|E
</points>

</polyline>
<duration>
<value>111</value>
<text>2 分钟</text>

</duration>
<html_instructions>继续前行,上<b>北四环中路</b></html_instructions>
<distance>
<value>2212</value>
<text>1.4 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>39.9879400</lat>
<lng>116.3843400</lng>

</start_location>
<end_location>
<lat>40.0445200</lat>
<lng>116.3372600</lng>

</end_location>
<polyline>
<points>
scasFcijeUCdCA`@B`J@`B@jCAb@C\CRCTEPAFAFELENEJCFEHMXy@zAc@p@CBCFEBKLOJOJGBQHSHSDcAVwD~@{Bj@GBKHIJEFILe@Js@R_AVc@POFu@`@k@\E@u@b@oClBGBOLsA`AmClBw@h@[TuCrBmFtDiAv@y@l@eAt@wAdASNkBpAwA`AqA|@gAt@eAr@WPYRSLkAz@sA~@_KvGm@`@sBtAg@ZOL{@j@wA`AmGfE_ElCyCpBQLSNWNgGdEuA~@oGhEo@b@cAr@YTmCnBcAr@cBhA_DzB{AfAgChBcBjAaD|B{CvBe@\i@`@iChBaAp@aGhEOJi@^sCpBMHWPUP_@Vu@h@GDqBvA}AhAeAv@gAp@aAt@_Ar@SLyCrBsDfCwA`A{ElD_@V_JvGg@\aIrFoFrDk@^iJ|GwB~AgI`GcBlAA@kBpAkKlHyGtEcFlDqBvA
</points>

</polyline>
<duration>
<value>389</value>
<text>6 分钟</text>

</duration>
<html_instructions>
下<b>G6/北五环/昌平</b>出口走<b>G6京藏高速</b><div style="font-size:0.9em">部分收费路段</div>
</html_instructions>
<distance>
<value>7658</value>
<text>4.8 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>40.0445200</lat>
<lng>116.3372600</lng>

</start_location>
<end_location>
<lat>40.0547800</lat>
<lng>116.3295900</lng>

</end_location>
<polyline>
<points>
gelsF{baeUu@F[HUFWJuAv@mA|@OLQJUJUDo@ByZlTIDyB~A]^a@f@e@p@]d@q@l@aD|BkDfCeAt@YR
</points>

</polyline>
<duration>
<value>118</value>
<text>2 分钟</text>

</duration>
<html_instructions>
下<b>安宁庄路/建材城西路/清河/上地/西三旗</b>出口走<b>G6辅路</b><div style="font-size:0.9em">部分收费路段</div>
</html_instructions>
<distance>
<value>1325</value>
<text>0.8 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>40.0547800</lat>
<lng>116.3295900</lng>

</start_location>
<end_location>
<lat>40.0555600</lat>
<lng>116.3297100</lng>

</end_location>
<polyline>
<points>kensF}r_eU]@S@S?SAMCQEa@O</points>
</polyline>
<duration>
<value>12</value>
<text>1 分钟</text>

</duration>
<html_instructions>下出口,前往<b>建材城西路</b></html_instructions>
<distance>
<value>88</value>
<text>289 英尺</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>40.0555600</lat>
<lng>116.3297100</lng>

</start_location>
<end_location>
<lat>40.0604600</lat>
<lng>116.3472100</lng>

</end_location>
<polyline>
<points>
gjnsFus_eUW]S[IK}AwBMSMQW]EIa@m@OSsAoBACYg@Yo@Yw@WaAAKG[CMSaBUyBCMAOGg@E_@UoB?Ai@wEQcBAOAOOwAAESkBCUE[MkAEa@K_ACUMoAQyAAOCOg@yEE_@SoBAOMeACSAM?AAMCMYkCC[MiAC[u@yGE_@MkAYcCIo@
</points>

</polyline>
<duration>
<value>144</value>
<text>2 分钟</text>

</duration>
<html_instructions>靠<b>左</b>,继续朝<b>黄平路</b>前行</html_instructions>
<distance>
<value>1622</value>
<text>1.0 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>40.0604600</lat>
<lng>116.3472100</lng>

</start_location>
<end_location>
<lat>40.0647000</lat>
<lng>116.3467500</lng>

</end_location>
<polyline>
<points>{hosFaaceUI?kK\{FXm@FY@_AJq@JC@</points>
</polyline>
<duration>
<value>62</value>
<text>1 分钟</text>

</duration>
<html_instructions>在<b>黄平路南口</b>向<b>左</b>转,进入<b>黄平路</b></html_instructions>
<distance>
<value>474</value>
<text>0.3 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>40.0647000</lat>
<lng>116.3467500</lng>

</start_location>
<end_location>
<lat>40.0724400</lat>
<lng>116.3601800</lng>

</end_location>
<polyline>
<points>
kcpsFe~beUGKcCqFwEoJyC_GqA}CkCoFyE}J?I_AoBiAaCiIkP_BeDIKWi@
</points>

</polyline>
<duration>
<value>198</value>
<text>3 分钟</text>

</duration>
<html_instructions>在<b>文华路南口</b>向<b>右</b>转,在<b>黄平路</b>上行进</html_instructions>
<distance>
<value>1431</value>
<text>0.9 英里</text>

</distance>

</step>
<step>
<travel_mode>DRIVING</travel_mode>
<start_location>
<lat>40.0724400</lat>
<lng>116.3601800</lng>

</start_location>
<end_location>
<lat>40.0719400</lat>
<lng>116.3606000</lng>

</end_location>
<polyline>
<points>wsqsFcreeUbBsA</points>
</polyline>
<duration>
<value>13</value>
<text>1 分钟</text>

</duration>
<html_instructions>
向<b>右</b>转<div style="font-size:0.9em">目的地在右侧</div>
</html_instructions>
<distance>
<value>67</value>
<text>220 英尺</text>

</distance>

</step>
<duration>
<value>1747</value>
<text>29 分钟</text>

</duration>
<distance>
<value>24303</value>
<text>15.1 英里</text>

</distance>
<start_location>
<lat>39.9680800</lat>
<lng>116.4899300</lng>

</start_location>
<end_location>
<lat>40.0719400</lat>
<lng>116.3606000</lng>

</end_location>
<start_address>中国北京市朝阳区酒仙桥</start_address>
<end_address>中国北京市昌平区霍营 邮政编码: 100096</end_address>

</leg>
<copyrights>地图数据 ©2013 GS(2011)6020 AutoNavi, Google</copyrights>
<overview_polyline>
<points>
og}rFa}~eU}RLoF?cPB}UHcHD?x@?|AI^Sf@gAnBc@~@iD~FqDhGmDbGcA~AkAlBJJE^LNjBtBvEnF|MjO`F|FhM~NvOnQdBnFZ|AJbAJpB?bCI|AUjBo@`DINcBnDg@~@}@`CeCnEy@xAsOfXoM|T}PjZqIfOk@jAc@hAu@vBe@|AgH|VgBdGuBnIWpAk@rDOjBGxAKbEBbDHpRXv^PnS`@x`@NrOTvZVvWJ~N|@~bAXtY@zHAjC?nBF`IJ|EEfDDbM?nDGp@If@Ol@]v@eBxCQP_@VYLg@N_KfCUTOTyA^cBh@wBhAu@b@oClBWPuHnFgOnK}G|EwHhFqCnBuRnMeYlRiKdH_IlF}AhAqEbDcGdEiNzJsVhQ_L~HcD`CgAp@aAt@sA`AmIzFsHnF_KnHeSdNm[lUsWvQuIdGu@F[Hm@RuAv@mA|@a@Xk@Po@ByZlTcCdB_AfAcAvAq@l@aD|BqF|DYR]@g@@a@Es@UsC}Dy@mAgCuDs@wAq@yBa@wCc@_EeAiJe@{EcAgJiBcQw@mHmA_Lg@oEIo@I?kK\{FXgAHqBVC@GKcCqFwEoJyC_GqA}CeJmR?I_AoBsKmTiBqDWi@bBsA    //包含所有的点
</points>

</overview_polyline>
<bounds>
<southwest>
<lat>39.9680800</lat>
<lng>116.3295700</lng>

</southwest>
<northeast>
<lat>40.0724400</lat>
<lng>116.4899300</lng>

</northeast>

</bounds>

</route>
</DirectionsResponse>

相关推荐

发表评论

电子邮件地址不会被公开。

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>