許多實體業者除了網站的sitemap需要傳送給Google之外,通常還需要傳送Geo sitemap給Google,以便在Google Map或是Google Earth中可以正確的顯示相關資料,但是近期發現Google Geo sitemap發生了錯誤 …
以下是原本可以在Google Webmasters,成功傳送的Geo sitemap結果:
但是現在變成這個樣子:
原因就在於Google已經不支援Geo sitemap了,但是仍舊可以支援KML檔案。
什麼意思呢? 我們來看看Google的Susan Moskwa在Google+上的說法:
We still support KML files. We previously supported an extension to the Sitemaps protocol where you could include tags in your XML Sitemaps that contained geo-specific information in addition to the URL of your KML file. We no longer support those geo-specific XML tags in Sitemaps, but you can still submit the URLs of your KML files in a standard Sitemap format.
意思就是說以往把geo tag放在XML檔案中,來說明KML檔案的位置,現在這個geo tag已經不再被Google支援,但是你可以把KML檔的URL放在一般的sitemap當中。
如果你不知道什麼是KML (Keyhole Markup Language),你可以參考KML Tutorial,他主要是用來描述實體物件在地圖中的訊息,長像如下:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Simple placemark</name>
<description>Attached to the ground. Intelligently places itself
at the height of the underlying terrain.</description>
<Point>
<coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
</Point>
</Placemark>
</kml>
那麼我們把KML中的訊息讓Google知道有什麼用處呢? 主要就是讓Google Earth 或是Google maps可以顯示正確的名稱、描寫、以及正確的位置。這個在進行在地搜尋優化 (Local Search Optimization)是非常重要的事情。
當然如果你已經完成KML檔案的處理,當然就不需要再多次傳送,但是如果你必須更新資料,就不能再使用Geo sitemap的方式傳遞,並且如果你使用Schema.org的格式,其實也可以將在地資料包括在網頁中,而不需要再使用KML的方式來描述。
