
Originally Posted by
skippy66
Excellent stuff!!! How did you decode the Route 66 stuff?
It's not properly decoded, just parsed. there's something not right about many of the lat/lon for route 66.
but the basic code (without error checking and db code) is in php the following:
PHP Code:
$tmc_raw=file($url);
foreach ($tmc_raw as $tmc_line) {
$tmc_line=trim($tmc_line);
list($d,$d,$lat,$lon,$d,$d,$d,$date,$road,$desc,$where) = explode(' ',$tmc_line);
$lat=substr($lat,0,2) . '.' . substr($lat,2);
$lon=substr($lon,0,2) . '.' . substr($lon,2);
echo "$lat,$lon,$where<br>";
}
Bookmarks