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); }
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; }