Пример #1
0
        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
 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;
 }