【问题标题】:How to draw routes between source and destination using Google Map in Flutter?如何在 Flutter 中使用 Google Map 在源和目的地之间绘制路线?
【发布时间】:2019-07-02 19:31:19
【问题描述】:

我最近开始研究 Flutter 并开始构建一个应用程序,但现在我希望能够集成谷歌地图。我开始更多地研究google_maps_flutter 并开始构建地图,但我目前无法集成的一件事是在提供的源和目的地之间绘制最短路线。

我查看了google_maps_flutter 插件,但找不到上述功能的实现。

任何帮助将不胜感激。

【问题讨论】:

标签: google-maps flutter google-maps-android-api-2 google-maps-flutter


【解决方案1】:

如果您查看过有关 Flutter - Using Google Maps and drawing Routes 的教程,这是一份结构指南,您正在寻找构建应用程序以在两个地方之间绘制路线。

除了教程中提到的包google_maps_flutter,您可能还想考虑使用包google_map_polyline_new,因为google_map_polyline 已于2 年前停止使用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-06
    • 2019-05-17
    • 2015-10-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多