Talk:Tiles@home/APIs
Jump to navigation
Jump to search
If the timestamp is UTC then please add the Z add the end. see ISO 8601 Dekarl 17:11, 1 February 2007 (UTC)
dev or tah ?
I'm confused about http://dev.openstreetmap.org versus http://tah.openstreetmap.org. What's the difference between tah and dev? This wiki page currently use tah for some sections and dev for others - is this on purpose? Bjorn 01:59, 18 November 2007 (UTC)
Get tile details
For get Information about tiles there can be used the direct access to the http-header in perl:
use LWP::Simple; my $url="http://dev.openstreetmap.org/~ojw/Tiles/tile.php/16/34848/22733.png"; # get Header my ($content_type, $document_length, $modified_time, $expires, $server) = head($url); # print results print "Content-type: ", $content_type, "\n"; print "Document-Length: ", $document_length, "\n"; print "Modified-Time: ", $modified_time, "\n"; print "Expires: ", $expires, "\n"; print "Server: ", $server, "\n";
--waschbaer 02:00, 6 July 2007 (BST)