private Property SetLegListValue(Property prop, RouteResultLeg SearchResult) { switch (prop.Name.ToLower()) { case "legdistance": prop.Value = SearchResult.Distance; break; case "legtimeinseconds": prop.Value = SearchResult.TimeInSeconds; break; case "legstartlatitude": prop.Value = SearchResult.StartLatitude; break; case "legstartlongitude": prop.Value = SearchResult.StartLongitude; break; case "legendlatitude": prop.Value = SearchResult.EndLatitude; break; case "legendlongitude": prop.Value = SearchResult.EndLongitude; break; case "legnelatitude": prop.Value = SearchResult.NELatitude; break; case "legnelongitude": prop.Value = SearchResult.NELongitude; break; case "legswlatitude": prop.Value = SearchResult.SWLatitude; break; case "legswlongitude": prop.Value = SearchResult.SWLongitude; break; case "legdescription": prop.Value = SearchResult.Description; break; } return(prop); }
private Property SetLegListValue(Property prop, RouteResultLeg SearchResult) { switch (prop.Name.ToLower()) { case "legdistance": prop.Value = SearchResult.Distance; break; case "legtimeinseconds": prop.Value = SearchResult.TimeInSeconds; break; case "legstartlatitude": prop.Value = SearchResult.StartLatitude; break; case "legstartlongitude": prop.Value = SearchResult.StartLongitude; break; case "legendlatitude": prop.Value = SearchResult.EndLatitude; break; case "legendlongitude": prop.Value = SearchResult.EndLongitude; break; case "legnelatitude": prop.Value = SearchResult.NELatitude; break; case "legnelongitude": prop.Value = SearchResult.NELongitude; break; case "legswlatitude": prop.Value = SearchResult.SWLatitude; break; case "legswlongitude": prop.Value = SearchResult.SWLongitude; break; case "legdescription": prop.Value = SearchResult.Description; break; } return prop; }