啟動 Google 地圖
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以透過幾種方式啟動 Google 地圖,請點選下方連結瞭解詳情。
- 地圖網址 (建議)
使用地圖網址,您就可以建立通用的跨平台網址來啟動 Google 地圖並執行搜尋、規劃路線與導航,以及顯示地圖檢視和全景圖片。這類通用網址可幫助您處理更多地圖要求,並支援各種使用者平台。
- 適用於 Android 的 Google 地圖意圖
使用 Android 應用程式的意圖功能,即可透過在 Intent
物件描述要執行的簡單動作 (例如「顯示地圖」或「顯示前往機場的路線」),在其他應用程式中開啟活動。
Android 版 Google 地圖應用程式支援數種不同的意圖,可讓您在顯示、搜尋、導航或街景模式中啟動 Google 地圖應用程式。
如果您想在應用程式中嵌入地圖,請參閱 Maps SDK for Android 入門指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-06-26 (世界標準時間)。
[null,null,["上次更新時間:2024-06-26 (世界標準時間)。"],[[["\u003cp\u003eLaunch Google Maps using universal, cross-platform URLs or platform-specific intents.\u003c/p\u003e\n"],["\u003cp\u003eMaps URLs are the recommended approach for building links that work across different platforms, enabling searches, directions, and map views.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Maps Intents are available for Android, allowing your app to trigger specific actions within the Google Maps app.\u003c/p\u003e\n"],["\u003cp\u003eTo embed a map directly into your Android app, consult the Maps SDK for Android documentation.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/maps/documentation/android-sdk/intents \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/urlscheme \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\n\nYou have a couple of options available to launch Google Maps.\nFollow the links below to learn more.\n\n[Maps URLs](/maps/documentation/urls/guide) (recommended)\n\n: Using Maps URLs, you can build a universal, cross-platform\n URL to launch Google Maps and perform searches, get directions and\n navigation, and display map views and panoramic images. These universal\n URLs allow for broader handling of the maps requests no matter which\n platform the user is on.\n\n[Google Maps Intents for Android](https://developer.android.com/guide/components/google-maps-intents)\n\n: Using intents in your Android app, you can start an activity in another\n app by describing a simple action you'd like to perform (such as \"display\n a map\" or \"show directions to the airport\") in an `Intent` object.\n The Google Maps app for Android supports several different intents, allowing\n you to launch the Google Maps app in display, search, navigation,\n or Street View modes.\n\nIf you want to embed a map in your app, please refer to the\nMaps SDK for Android [guide to getting started](/maps/documentation/android-sdk/start)."]]