TDF GPS Data 'FDJ', 'Daniel Oss' => 'LIQ', 'Paolo Borghini' => 'LIQ', 'Brian Vandborg' => 'SBS', 'Christian Knees' => 'SKY', 'Julien El Fares' => 'COF', 'Romain Zingle' => 'COF', 'Mickael Buffaz' => 'COF', 'Andrey Zeits' => 'AST', 'Thomas Vaitkus' => 'AST', 'Markel Irizar' => 'RSH', 'Brent Bookwalter' => 'BMC', 'Michael Schaer' => 'BMC' ); $rider = 0; foreach($xml->marker as $marker) { if(($marker->attributes()->lat != 0) || ($marker->attributes()->lng != 0)){ // Exclude if rider is located in the Gulf of Guinea ?> attributes()->name; echo $name.' #'.$data[0]; if(array_key_exists($name, $rider_team)) { echo ' ('.$rider_team[$name].')'; } // Note: I created this version of the script while these data fields were dead, so they may be labelled wrong. if($data[1] != '-') echo ' '.$data[1].'k'; // Speed if($data[2] != '-') echo ' '.$data[2].'r'; // Cadence if($data[3] != '-') echo ' ♥'.$data[3].''; // Heart rate if($data[4] != '-') echo ' '.$data[4].'W'; // Power output ?> #sh_bike attributes()->lng.','.$marker->attributes()->lat?>