Maps Archives

May 24, 2007

Unable to load source file - GeoRSS for Virtual Earth API

I was investigating some issues this morning integrating dynamically generated GeoRSS with Microsoft's Virtual Earth API. Turns out that the issue is that the API requires appropriate MIME-type for GeoRSS, even when the conent itself is XML. There is an answer...

I think this is simply a matter of how you are setting the MIME type when you generate the file. Here ( is a sample feed I found on the web site. Notice that it is a .php page that auto-generates a GeoRSS file (no .xml extension). It works in my VE mashup without a problem.

The PHP solution is straight-forward. Before spilling out the XML, include this code"

$charset = "iso-8859-1";
$mime = "application/xml";
header("Content-Type: $mime;charset=$charset");

About Maps

This page contains an archive of all entries posted to Tim's Journal in the Maps category. They are listed from oldest to newest.

Licensing is the previous category.

RAM is the next category.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.35