Link 到 Google 动态路径映射

Link to Google maps with dynamic path

我想 link 到 Google 具有纬度和经度的地图:
为此,我使用了:http://maps.google.com/maps?q=48.819141912303,2.2297863639837

我想知道是否可以为此 Google 地图添加路径?
我在静态地图中使用它,我可以用这个 Google 地图 link 来做吗? https://maps.googleapis.com/maps/api/staticmap?path=48.819141912303,2.2297863639837|48.81863290356,2.2312122798508|48.818734654467,2.2313515376389&scale=true&size=600x300&maptype=roadmap&format=png&visual_refresh=true

我认为打开带有任意多段线的地图是不可能的。为此,您应该使用 API。

但是,您可以打开包含行车路线经过指定 waypoints 的地图。

只需为包含起点、目的地和 waypoints 的路线创建地图 URL。

例如,

https://www.google.com/maps/dir/?api=1&origin=48.819141912303,2.2297863639837&waypoints=48.81863290356,2.2312122798508&destination=48.818734654467,2.2313515376389&travelmode=walking

查看 Maps URLs documentation 了解更多详情。