适用于 Flutter 和 React Native 的 Google 导航
使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。
借助适用于 Flutter 和 React Native 的 Google Navigation 插件,您可以将 Google Navigation 体验集成到跨平台应用中。本页概述了插件,提供了指向插件软件包页面和源代码库的链接,以及有关在应用中使用插件的重要信息。
前提条件
在使用 Flutter 或 React Native 版 Google Navigation 插件之前,请确保您的项目已关联结算账号并且启用了 Navigation SDK for Android 和 Navigation SDK for iOS。您还需要 API 密钥。如需了解详情,请参阅 Google Maps Platform 使用入门。
Flutter 版 Google 导航
面向 Flutter 的 Google 导航插件为以 Android 和 iOS 为目标平台的 Flutter 应用提供了一个 Google 导航 widget。
适用于 React Native 的 Google 导航
面向 React Native 的 Google Navigation 插件为以 Android 和 iOS 为目标平台的 React Native 应用提供了一个 Google Navigation 组件。
服务条款
适用于 Flutter 和 React Native 的导航插件库使用 Google Maps Platform 服务。通过这些库使用 Google Maps Platform 服务时,需遵守 Google Maps Platform 服务条款。
这些库不是 Google Maps Platform 核心服务。因此,Google Maps Platform 服务条款(例如技术支持服务、服务等级协议和弃用政策)不适用于这些库中的代码。
支持
适用于 Flutter 和 React Native 的导航库根据开源许可提供。它们不受 Google Maps Platform 支持技术支持服务准则、SLA 或弃用政策的约束(不过,库使用的任何 Google Maps Platform 服务仍需遵守 Google Maps Platform 服务条款)。
这些库遵循语义版本控制做法,以指明何时引入了向后不兼容的更改。因此,在库版本为 0.x 时,可能会随时引入向后不兼容的更改。
如果您发现 bug 或有功能请求,请在 GitHub 上提交问题。如果您想向其他 Google Maps Platform 开发者寻求技术问题的解答,请通过我们的开发者社区渠道提问。如果您想贡献代码,请查看库代码库中的贡献指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-24。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-24。"],[[["\u003cp\u003eGoogle provides Navigation plugins for Flutter and React Native, enabling integration of Google Navigation into cross-platform apps.\u003c/p\u003e\n\u003cp\u003eTo use the plugins, ensure you have a project with billing enabled, Navigation SDKs for Android and iOS activated, and an API key.\u003c/p\u003e\n\u003cp\u003eDetailed installation instructions, source code, and usage examples are available on the respective plugin pages for Flutter and React Native on pub.dev, npm, and GitHub.\u003c/p\u003e\n\u003cp\u003eThese plugins are open source and not covered by Google Maps Platform support guidelines or SLAs, but the Google Maps Platform Terms of Service still apply to the underlying Google Maps Platform services.\u003c/p\u003e\n"]]],["Google Navigation plugins integrate Google Navigation into Flutter and React Native apps for Android and iOS. Using the plugins requires a project with a billing account, Navigation SDKs enabled, and an API key. Plugin details, installation, and source code, including examples, are available on pub.dev and npm for Flutter and React Native, respectively. The code repositories for both are available on GitHub. These are open source, and not considered core services, and as such, they are not governed by the standard Google Maps Platform terms of service.\n"],null,["The Google Navigation plugins for Flutter and React Native allow you to\nintegrate the Google Navigation experience into your cross-platform apps. This\npage provides an overview of the plugins, links to the plugin package pages and\nsource repositories, and important information about using the plugins in your\napp.\n\nPrerequisites\n\nBefore using the Google Navigation plugins for Flutter or React Native, you need\na project with a billing account and the Navigation SDK for Android and\nNavigation SDK for iOS enabled. You also need an API key. For more information,\nsee [Getting started with Google Maps Platform](/maps/get-started).\n\nGoogle Navigation for Flutter\n\nThe Google Navigation for Flutter plugin provides a Google Navigation widget to\nFlutter apps that target Android and iOS.\n\n- For information about installing and using the plugin, see the [Google\n Navigation for Flutter plugin on\n pub.dev](https://pub.dev/packages/google_navigation_flutter).\n- To view or contribute to the plugin source code, as well as for an [example](https://github.com/googlemaps/flutter-navigation-sdk/tree/main/example) of how to use the plugin, see the [Google Navigation for Flutter plugin\n repository on GitHub](https://github.com/googlemaps/flutter-navigation-sdk)\n\nGoogle Navigation for React Native\n\nThe Google Navigation for React Native plugin provides a Google Navigation\ncomponent to React Native apps that target Android and iOS.\n\n- For information about installing and using the plugin, see the [Google\n Navigation for React Native plugin on\n npm](https://www.npmjs.com/package/@googlemaps/react-native-navigation-sdk)\n- To view or contribute to the plugin source code, as well as for an [example](https://github.com/googlemaps/react-native-navigation-sdk/tree/main/example) of how to use the plugin, see the [Google Navigation for React Native plugin\n source code repository on\n GitHub](https://github.com/googlemaps/react-native-navigation-sdk)\n\nTerms of Service\n\nThis Navigation plugin libraries for Flutter and React Native use Google Maps\nPlatform services. Use of Google Maps Platform services through these libraries\nis subject to the [Google Maps Platform Terms of\nService](https://cloud.google.com/maps-platform/terms).\n\nThese libraries are not a Google Maps Platform Core Service. Therefore, the\nGoogle Maps Platform Terms of Service (e.g. Technical Support Services, Service\nLevel Agreements, and Deprecation Policy) do not apply to the code in these\nlibraries.\n\nSupport\n\nThe Navigation for Flutter and React Native libraries are offered under open\nsource licenses. They are not governed by the Google Maps Platform Support\n[Technical Support Services\nGuidelines](https://cloud.google.com/maps-platform/terms/tssg), the\n[SLA](https://cloud.google.com/maps-platform/terms/sla), or the [Deprecation\nPolicy](https://cloud.google.com/maps-platform/terms) (however, any Google Maps\nPlatform services used by the libraries remain subject to the Google Maps\nPlatform Terms of Service).\n\nThe libraries adhere to [semantic versioning](https://semver.org/) to indicate\nwhen backwards-incompatible changes are introduced. Accordingly, while the\nlibraries are in version 0.x, backwards-incompatible changes may be introduced\nat any time.\n\nIf you find a bug, or have a feature request, please file an issue on GitHub. If\nyou would like to get answers to technical questions from other Google Maps\nPlatform developers, ask through one of our [developer community\nchannels](https://developers.google.com/maps/developer-community). If you'd like\nto contribute, please check the contributing guides in the library's repository."]]