这里得到请求python

发布于 2025-01-22 02:22:14 字数 461 浏览 2 评论 0 原文

想知道我是否有一种方法可以在目的地中发送多个长长和lat绳,并到达此处的API,而不仅仅是单个长和lat。例如,在原点和目标参数中,我想输入一个长和lat的列表。

import request
    url = """https://router.hereapi.com/v8/routes?origin=47.584247,11.055542&origin=67.584247,12.055542&transportMode=pedestrian&destination=47.589299,11.060172&destination=63.584247,11.055542&return=polyline,elevation&apikey=apikey"""
    response = requests.get(url, verify = False)
    j = response.json()

Was wondering if there's a way for me to send out multiple long and lat cords in the destination and arrival in the HERE api instead of just individual long and lat. For example in the origin and destination param, I want to input a list of long and lat.

import request
    url = """https://router.hereapi.com/v8/routes?origin=47.584247,11.055542&origin=67.584247,12.055542&transportMode=pedestrian&destination=47.589299,11.060172&destination=63.584247,11.055542&return=polyline,elevation&apikey=apikey"""
    response = requests.get(url, verify = False)
    j = response.json()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梅窗月明清似水 2025-01-29 02:22:14

请参考 routerdemo validatiad valide。

谢谢。

Kindly refer the examples in multiplewaypoint. Also please use our router tool Routerdemo to validate.

Thanks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文