C# 使用Bing REST到目的地的多条路由

C# 使用Bing REST到目的地的多条路由,c#,bing-maps,C#,Bing Maps,使用这条线只会产生一条路径 Uri routeRequest = new Uri(string.Format("http://dev.virtualearth.net/REST/V1/Routes/Driving?wp.0={0}&wp.1={1}&rpo=Points&key={2}", from, to, MyMap.Credentials)); 这个也是 Uri routeRequest = new Uri(string.

使用这条线只会产生一条路径

Uri routeRequest = new Uri(string.Format("http://dev.virtualearth.net/REST/V1/Routes/Driving?wp.0={0}&wp.1={1}&rpo=Points&key={2}", 
                    from, to, MyMap.Credentials));
这个也是

Uri routeRequest = new Uri(string.Format("http://dev.virtualearth.net/REST/V1/Routes/Walking?wp.0={0}&wp.1={1}&rpo=Points&key={2}", 
                    from, to, MyMap.Credentials));
这一个不会返回结果,但它应该返回主要道路上的路线

Uri routeRequest = new Uri(string.Format("http://dev.virtualearth.net/REST/V1/Routes/FromMajorRoads?wp.0={0}&wp.1={1}&rpo=Points&key={2}", 
                    from, to, MyMap.Credentials));

根据Bing地图REST路由服务的文档,主要路由功能不像您使用的那样使用航路点。而是有一个目标参数。您可以在此处找到文档: