用路径和彩色标记创建静态图像

时间:2013-02-17 23:56:45

标签: google-maps google-static-maps

我正在尝试从GPS数据生成事件地图,显示路线两侧的两分钟路径,以及三个标记:开始,事件,结束。我得到的只是错误400,网址格式错误。我尝试使用较小的URL组件进行切割和更改,但它无法正常工作。

对我的网址结构有何建议?我没有正确编码吗?无论如何得到关于它窒息的部分的反馈?我应该不使用Static Maps API吗?

  

https://maps.googleapis.com/maps/api/staticmap?format=jpg&sensor=false&path=color:green%7Cweight:5%7C-21.3322,148.9388%7C-21.3330,148.9402%7C -21.3302,148.9397%7C-21.3287,148.9394%7C-21.3273,148.9393%7C-21.3261,148.9392%7C-21.3247,148.9391%7C-21.3239,148.9390%7C-21.3236,148.9389%7C-21.3236,148.9389%7C-21.3198 ,148.9371%7C-21.3186,148.9364%7C-21.3175,148.9357%7C-21.3162,148.9350%7C-21.3153,148.9347%7C-21.3141,148.9344%7C-21.3128,148.9342%7C-21.3116,148.9341%7C-21.3103,148.9341 %7C-21.3090,148.9341%7C-21.3077,148.9340%7C-21.3064,148.9340%7C-21.3051,148.9339%7C-21.3039,148.9339%7C-21.3026,148.9339%7C-21.3013,148.9340%7C-21.3013,148.9340&安培;标记=颜色:红%7Clabel:速度%20violation%7C-21.3302,148.9397&安培;标记=颜色:蓝%7Clabel:支持%20Pack%20End%7C-21.3013,148.9340&安培;键= [剪断]