wpf-devexpress-dot-xpf-dot-map-dot-bingitineraryitem-587c4bcb.md
Gets the location of the itinerary item.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public GeoPoint Location { get; }
Public ReadOnly Property Location As GeoPoint
| Type | Description |
|---|---|
| GeoPoint |
A GeoPoint object specifying the location.
|
string ProcessItinerary(List<BingItineraryItem> items) {
if (items == null) return "";
StringBuilder sb = new StringBuilder("\tInternary Items:\n");
for (int i = 0; i < items.Count; i++) {
sb.Append(String.Format("\t\tItinerary {0}:\n", i+1));
sb.Append(String.Format("\t\tManeuver: {0}\n", items[i].Maneuver));
sb.Append(String.Format("\t\tLocation: {0}\n", items[i].Location));
sb.Append(String.Format("\t\tInstructions: {0}\n", items[i].ManeuverInstruction));
sb.Append(ProcessWarnings(items[i].Warnings));
}
return sb.ToString();
}
Private Function ProcessItinerary(ByVal items As List(Of BingItineraryItem)) As String
If items Is Nothing Then
Return ""
End If
Dim sb As New StringBuilder(ControlChars.Tab & "Internary Items:" & ControlChars.Lf)
For i As Integer = 0 To items.Count - 1
sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & "Itinerary {0}:" & ControlChars.Lf, i+1))
sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & "Maneuver: {0}" & ControlChars.Lf, items(i).Maneuver))
sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & "Location: {0}" & ControlChars.Lf, items(i).Location))
sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & "Instructions: {0}" & ControlChars.Lf, items(i).ManeuverInstruction))
sb.Append(ProcessWarnings(items(i).Warnings))
Next i
Return sb.ToString()
End Function
See Also