Exemple #1
0
 private routeservice.Waypoint GeocodeResultToWaypoint(geocodeservice.GeocodeResult result)
 {
     routeservice.Waypoint waypoint = new routeservice.Waypoint();
     waypoint.Description        = result.DisplayName;
     waypoint.Location           = new Location();
     waypoint.Location.Latitude  = result.Locations[0].Latitude;
     waypoint.Location.Longitude = result.Locations[0].Longitude;
     return(waypoint);
 }
Exemple #2
0
 private routeservice.Waypoint GeocodeResultToWaypoint(geocodeservice.GeocodeResult result)
 {
     routeservice.Waypoint waypoint = new routeservice.Waypoint();
     waypoint.Description = result.DisplayName;
     waypoint.Location = new Location();
     waypoint.Location.Latitude = result.Locations[0].Latitude;
     waypoint.Location.Longitude = result.Locations[0].Longitude;
     return waypoint;
 }