KML全名為(Keyhole Markup Language),符合目前最通行的一種文件交換語言標準XML (eXtensible Markup Language),有固定的語法與結構。KML文件跟其他XML家族最大的不同處 是它以地理資訊的描述為主,如點、面、圖形與立體空間的定義與描述。 而Keyhole這個字是Google收購的一家公司名稱,Google在收購Keyhole之後,將Keyhole公司原 本的服務改名為Google Earth,並且標上斗大的標語「Explore the world from your PC」,也就 是 讓網路使用者可以在家翹著二郎腿,利用電腦與網路探索全世界的全貌。
原來,只要將所有經銷商的定位資料放到KML裡,就可以在Google maps一次呈現出來,呵~這正是我想要的東東 當下決定,我要使用KML這項方案來做這次的經銷商據點分析,要『Explore the retailers from my PC 』。中研院的那個網站所download的KML雖然也可以拿來直接使用,但格式不符合我的要求,於是很久沒當Coder的我,再度下海當一次Coder。 原理其實很簡單,在KML裡一個點(或者其它物件)都叫Placemark,一個KML裡可以放很多Placemark,Google maps會解析這些Placemark把它們畫到地圖上去,一個簡單的Placemark樣子如下:
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.
To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in