Building the Tour Tracker, part 3
So, a number of folks want to see the XML files that were used in the Tracker. Pending the source being posted, I wanted to provide a glimpse of the XML data I was consuming... Part 4 will get back to the real stuff, I promise.
tour.xml looked something like this....
<tour>
<name>Tour Of California</name>
<stages href="stages.xml">
<teams href="teams.xml">
<riders href="riders.xml">
</tour>
stages.xml looked something like this....
<stages>
<stage>
<name>Stage 1</name>
<number>1</number>
<description>Sausalito to Santa Rosa</description>
<date>02/19/2007 11:00:00 AM</date>
<course>
<route href="stage1.xml">
<length>97.2</length>
<sprints>
<sprint>
<name>Point Reyes Station</name>
<distance>27.9</distance>
</sprint>
</sprints>
<climbs>
<climb>
<name>Mount Tamalpais</name>
<distance>7.9</distance>
<category>4</category>
<elevation>1512</elevation>
</climb>
</climbs>
</course>
</stage>
</stages>
teams.xml something like this....
<teams>
<team>
<name>Discovery Channel</name>
<code>DSC</code>
<jerseyclass>JerseyColorsDisc</jerseyclass>
<markerclass>MarkerTeamDisc</markerclass>
</team>
</teams>
riders.xml like this....
<riders>
<rider team="TMO" name="ROGERS Michael">
<rider team="DSC" name="LEIPHEIMER Levi">
</riders>
and stage1.xml (the route description) is... obviously the coordinates section is the real meat of the route and i'm only showing 3 of thousands of coordinates...
<kml>
<document>
<folder>
<name>TOC - stage one</name>
<placemark>
<name>stage one route</name>
<linestring>
<tessellate>1</tessellate>
<coordinates>
-122.525029684569,37.8820621222632,11.222371084321395
-122.5251466016472,37.88202877312941,11.358573896309174
-122.5255467637875,37.88180258521668,11.975485783494067
</coordinates>
</linestring>
</placemark>
</folder>
</document>
</kml>
Later I'll include the XML that gets posted during the race. But this shows what we load at startup to display the race details to the user.
tour.xml looked something like this....
<tour>
<name>Tour Of California</name>
<stages href="stages.xml">
<teams href="teams.xml">
<riders href="riders.xml">
</tour>
stages.xml looked something like this....
<stages>
<stage>
<name>Stage 1</name>
<number>1</number>
<description>Sausalito to Santa Rosa</description>
<date>02/19/2007 11:00:00 AM</date>
<course>
<route href="stage1.xml">
<length>97.2</length>
<sprints>
<sprint>
<name>Point Reyes Station</name>
<distance>27.9</distance>
</sprint>
</sprints>
<climbs>
<climb>
<name>Mount Tamalpais</name>
<distance>7.9</distance>
<category>4</category>
<elevation>1512</elevation>
</climb>
</climbs>
</course>
</stage>
</stages>
teams.xml something like this....
<teams>
<team>
<name>Discovery Channel</name>
<code>DSC</code>
<jerseyclass>JerseyColorsDisc</jerseyclass>
<markerclass>MarkerTeamDisc</markerclass>
</team>
</teams>
riders.xml like this....
<riders>
<rider team="TMO" name="ROGERS Michael">
<rider team="DSC" name="LEIPHEIMER Levi">
</riders>
and stage1.xml (the route description) is... obviously the coordinates section is the real meat of the route and i'm only showing 3 of thousands of coordinates...
<kml>
<document>
<folder>
<name>TOC - stage one</name>
<placemark>
<name>stage one route</name>
<linestring>
<tessellate>1</tessellate>
<coordinates>
-122.525029684569,37.8820621222632,11.222371084321395
-122.5251466016472,37.88202877312941,11.358573896309174
-122.5255467637875,37.88180258521668,11.975485783494067
</coordinates>
</linestring>
</placemark>
</folder>
</document>
</kml>
Later I'll include the XML that gets posted during the race. But this shows what we load at startup to display the race details to the user.
