是否有使用 Bing 地图 REST API 进行多行程路线优化的 C# 示例?
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经向 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