0

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

对我的 URL 结构有什么建议吗?我没有正确编码吗?无论如何要获得有关其窒息的部分的反馈?我不应该使用静态地图 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.36,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.3,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&markers =颜色:红色%7clabel:速度%20violation%7C-21.3302,148.9397&markers=color:blue%7Clabel:Support%20Pack%20End%7C-21.3013,148.9340&key=[snip]

4