是否有使用 Bing 地图 REST API 进行多行程路线优化的 C# 示例?

发布于 2025-01-10 20:00:39 字数 458 浏览 3 评论 0原文

BingMapsRESTToolkit 为 Bing Maps API 提供的大部分功能提供了一些很棒的示例。但是没有多行程路线优化(MIO)的示例,而且我在网上找不到任何内容。

我可以看到 Microsoft 文档,它为 MIO 提供了示例 JSON。但我想找到一个 C# 示例,它包装了此类 JSON 的创建,然后利用响应将路由推送到 BingMapsControl,就像 BingMapsRESTToolkit 的其余部分所做的那样。

MS MIO 文档: https://learn.microsoft.com/en- us/bingmaps/articles/create-an-optimized-itinerary

The BingMapsRESTToolkit has some great samples for much of the functionality provided by the Bing Maps API. But there isn't a sample for Multi-Itinerary Route Optimization (MIO), and I have been unable to find anything on the web.

I can see the Microsoft Documentation which provides sample JSON for MIO. But I would like to find a C# sample that wraps the creation of such JSON and then utilizes the response to push the routes onto a BingMapsControl, such as the rest of the BingMapsRESTToolkit does.

MS MIO Documentation:
https://learn.microsoft.com/en-us/bingmaps/articles/create-an-optimized-itinerary

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

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

发布评论

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

评论(1

梦晓ヶ微光ヅ倾城 2025-01-17 20:00:39

我已经向 Bing Maps REST Toolkit 发出了拉取请求,该工具包增加了对 MOI 的支持,并包含一个相当深入的示例。不确定 NuGet 是否或何时更新,但您可以下载源代码并将项目引用到本地解决方案中以访问所有这些。以下是代码示例的链接: https://github.com /microsoft/BingMapsRESTToolkit/tree/master/Samples/WPF/MultiRouteOptimizationSample

I've made a pull request to the Bing Maps REST Toolkit that adds support for MOI and includes a pretty in depth sample. Not sure if or when the NuGet will be updated, but you can download the source code and reference the project into your solution locally to get access to all this. Here is a link to the code sample: https://github.com/microsoft/BingMapsRESTToolkit/tree/master/Samples/WPF/MultiRouteOptimizationSample

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