启动 Google 地图
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以通过多种方式启动 Google 地图。请访问以下链接了解详情。
- 地图网址(推荐)
利用地图网址,您可以构建一个跨平台通用网址,以启动 Google 地图、执行搜索、获取路线和导航,以及显示地图视图和全景图片。无论用户使用哪个平台,您都可以通过这些通用网址更广泛地处理地图请求。
- 适用于 Android 的 Google 地图 intent
利用 Android 应用中的 intent,您可以通过在某个 Intent
对象中描述您想执行的简单操作(如“显示地图”或“显示前往机场的路线”)来启动另一个应用中的 activity。Android 版 Google 地图应用支持多种不同的 intent,可让您以显示模式、搜索模式、导航模式或街景模式启动 Google 地图应用。
如果您想在应用中嵌入地图,请参阅 Maps SDK for Android 入门指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[null,null,["最后更新时间 (UTC):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)."]]