简体   繁体   English

如何在Windows Phone 8.1 Universal App中获得两个纬度/经度之间的行驶距离

[英]How to get driving distance between two lat/longs in Windows Phone 8.1 Universal App

I've definitely seen some REST APIs out there that can do this but I'm sure there's a WinRT/Windows Phone 8 Store App way of calculating driving distance (preferably with traffic) between two Geolocations points (lat/long). 我肯定已经见过一些REST API可以做到这一点,但是我确定有WinRT / Windows Phone 8 Store App应用程序可以计算两个地理位置(纬度/经度)之间的行驶距离(最好是交通)。

I see ways of doing it by returning a map on the phone with the details, but I just want the distance information returned without going to a mapping UI or control. 我看到了通过在手机上返回带有详细信息的地图来实现此目的的方法,但是我只想返回距离信息,而无需进入映射UI或控件。

This would preferably work on a tablet (WindowsRT) as well but Phone is the focus at the moment. 最好也可以在平板电脑(WindowsRT)上运行,但目前手机是重点。

Bing Maps REST API is the way to do it. Bing Maps REST API是做到这一点的方法。

Here's the documentation and a sample . 这是文档示例 You can find one way of how to use these with .NET here . 您可以在此处找到一种将其与.NET结合使用的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM