http://code.google.com/intl/en/apis/loader/signup.html
Sign-up for an API Key
Thanks for Signing up for a Google API key!
Your key is:ABQIAAAATnIG9qFAg7nB6fgNqvOpoxRc88rVfQ8hgQrXQDtmwADU-6IcEBSkNgnnpkJdZ7GK9cEeaI9llxtZIwThis key is good for all URLs in this directory:
http://www.coding.com.twHere is an example web page to get you started:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>My Google API Application</title> <script src="https://www.google.com/jsapi?key=ABQIAAAATnIG9qFAg7nB6fgNqvOpoxRc88rVfQ8hgQrXQDtmwADU-6IcEBSkNgnnpkJdZ7GK9cEeaI9llxtZIw" type="text/javascript"></script> <script language="Javascript" type="text/javascript"> //<![CDATA[ google.load("search", "1"); function OnLoad() { // Create a search control var searchControl = new google.search.SearchControl(); // Add in a full set of searchers var localSearch = new google.search.LocalSearch(); searchControl.addSearcher(localSearch); searchControl.addSearcher(new google.search.WebSearch()); searchControl.addSearcher(new google.search.VideoSearch()); searchControl.addSearcher(new google.search.BlogSearch()); // Set the Local Search center point localSearch.setCenterPoint("New York, NY"); // Tell the searcher to draw itself and tell it where to attach searchControl.draw(document.getElementById("searchcontrol")); // Execute an inital search searchControl.execute("Google"); } google.setOnLoadCallback(OnLoad); //]]> </script> </head> <body> <div id="searchcontrol">Loading...</div> </body> </html>
感謝您申請 Google Maps API 金鑰!
您的金鑰為:ABQIAAAATnIG9qFAg7nB6fgNqvOpoxRc88rVfQ8hgQrXQDtmwADU-6IcEBSkNgnnpkJdZ7GK9cEeaI9llxtZIw注意:如要進一步瞭解 API 金鑰系統,請參閱 http://code.google.com/apis/maps/faq.html#keysystem。 您使用的 Maps API 產品或服務會決定金鑰的使用方式;您的金鑰適用於所有 Google Maps API 解決方案。以下範例示範如何在 Maps API 產品線內使用您的金鑰。JavaScript Maps API 範例
在 JavaScript Maps API 中,可於載入 API 時將金鑰放置於指令碼標記內:... // Note: you will need to replace the sensor parameter below with either an explicit true or false value. <script src="http://maps.google.com/maps?file=api&v=2&sensor=true_or_false&key=ABQIAAAATnIG9qFAg7nB6fgNqvOpoxRc88rVfQ8hgQrXQDtmwADU-6IcEBSkNgnnpkJdZ7GK9cEeaI9llxtZIw" type="text/javascript"></script> ...如需詳細資訊,請參閱 JavaScript Maps API 文件中的「載入 Maps API」。Maps API for Flash 範例
在 Maps API for Flash 中,您可以在 MXML 宣告中放置金鑰,直接在程式碼裡面宣告為Map.key
內容,或者在 HTML 容器內宣告為flashVars
內容。下方為 MXML 宣告範例:... <maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)" width="100%" height="100%" key="ABQIAAAATnIG9qFAg7nB6fgNqvOpoxRc88rVfQ8hgQrXQDtmwADU-6IcEBSkNgnnpkJdZ7GK9cEeaI9llxtZIw"/> ...如需詳細資訊,請參閱 Maps API for Flash 文件中的「宣告地圖」。HTTP 服務範例
在 Maps API HTTP 服務中,例如 Static Maps API 或地理編碼服務,直接將金鑰放置於要求的網址:http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&oe=utf8\ &sensor=true_or_false&key=ABQIAAAATnIG9qFAg7nB6fgNqvOpoxRc88rVfQ8hgQrXQDtmwADU-6IcEBSkNgnnpkJdZ7GK9cEeaI9llxtZIw
程式碼工作室
ERP/EIP/CMS/CHART/REPORT/SPC/EDA/雲端 系統開發整合
ASP/PHP/JSP/ASP.NET 網頁設計
技術指導顧問
信箱:paulwu0114@gmail.com
http://www.coding.com.tw
沒有留言:
張貼留言