Last week during the geo madness of Where2.0 and WhereCamp, we announced two enhancements in geo search to make it both easier for developers to get their data into our geo search index and easier for developers to get data back out of the index:
- Geo Sitemaps: Sitemaps are a protocol that bots use to index content from websites. Last year, we announced the ability to include KML/GeoRSS files in regular sitemaps just like a normal web resource. This year, we announce a special extension for sitemaps that adds geo-specific tags and makes it easier for us to index. To get your geo content indexed as fast as possible, just submit the sitemap to Google Webmaster Central. For more information on creating a KML file to include in a sitemap, read this article in the KML documentation. An example geo sitemap listing a KML and a GeoRSS file is shown below:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0"> <url> <loc>http://www.example.com/download?format=kml</loc> <geo:geo> <geo:format>kml</geo:format> </geo:geo> </url> <url> <loc>http://www.example.com/download?format=georss</loc> <geo:geo> <geo:format>georss</geo:format> </geo:geo> </url> </urlset>
service.url = 'http://ajax.googleapis.com/ajax/services/search/local'; service.request.q = "site: platial.com" + " " + address.text; service.request.mrt = "kmlonly"; service.addEventListener(ResultEvent.RESULT, onServerResponse); service.send();
There are (atleast) two really cool consequences of this news: 1) you'll be able to enable users of your mashups to instantly find international results where previously none existed, and to be able to find results for non-standard searches (e.g. "dog parks"), and 2) by indexing your content, waiting a few weeks, and then using the local search with a "site:yourdomain.com" appended to the query, you get to leverage the power of google search on your own content with barely any code of your own.