コード例 #1
0
ファイル: Routing.cs プロジェクト: vejuhust/msft-scooter
        public List <GPSInstruction.Instruction> GetRoute(string currentlocation, string destination)
        {
            var      uri          = GetRoutingURI(currentlocation, destination);
            var      response     = GetURIResponseSynced(uri);
            RouteLeg leg          = ((BingMapsRESTService.Common.JSON.Route)(response.ResourceSets[0].Resources[0])).RouteLegs[0];
            var      instructions = new GPSInstruction(((BingMapsRESTService.Common.JSON.Route)(response.ResourceSets[0].Resources[0])).RouteLegs[0].ItineraryItems);

            return(instructions.InstructionList);
        }
コード例 #2
0
ファイル: Routing.cs プロジェクト: vejuhust/msft-scooter
 public List<GPSInstruction.Instruction> GetRoute(string currentlocation, string destination)
 {
     var uri = GetRoutingURI(currentlocation, destination);
     var response = GetURIResponseSynced(uri);
     RouteLeg leg = ((BingMapsRESTService.Common.JSON.Route)(response.ResourceSets[0].Resources[0])).RouteLegs[0];
     var instructions = new GPSInstruction(((BingMapsRESTService.Common.JSON.Route)(response.ResourceSets[0].Resources[0])).RouteLegs[0].ItineraryItems);
     return instructions.InstructionList;
 }