Android NDK 地理空间开发者指南 (C)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
了解如何在您自己的应用中使用 Geospatial API:
示例应用和 Codelab
如果您想运行演示此处所述功能的示例应用,请参阅适用于 Java 的 Android 版 ARCore 地理空间快速入门。快速入门中的示例应用是使用 Java 编写的。本文档中的代码示例针对使用 C 语言编写的相同功能。
开发要求
如果您刚开始使用 ARCore 进行开发,请参阅使用入门,了解软件和硬件要求、前提条件以及特定于您所用平台的其他信息。
请确保您的开发环境符合 Java 版 快速入门中所述的 ARCore SDK 要求。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe Geospatial API enables developers to build AR apps that interact with the real world using VPS and terrain anchors.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides guides and resources for enabling the API, checking VPS availability, obtaining device pose, utilizing geospatial and terrain anchors, and understanding API usage quotas.\u003c/p\u003e\n"],["\u003cp\u003eA sample app and codelab are available for quickstart and exploration of the Geospatial API's features, primarily focusing on Android development with Java and C.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers new to ARCore are encouraged to review getting started resources to ensure their environment meets the necessary requirements for AR development using this API.\u003c/p\u003e\n"]]],["The content outlines using the Geospatial API in apps, detailing key actions: enabling the API, checking VPS availability, determining the device's Geospatial pose, and working with Geospatial and Terrain anchors. It also mentions API usage quotas. A Java sample app is available in the ARCore Geospatial Quickstart for Android, with C code examples for the same functions. Developers should also check the ARCore SDK requirements in the Quickstart.\n"],null,["# Geospatial developer guide for Android NDK (C)\n\nLearn how to use the [Geospatial API](/ar/develop/geospatial) in your own apps:\n\n- [Enable the Geospatial API](/ar/develop/c/geospatial/enable)\n- [Check VPS availability](/ar/develop/c/geospatial/check-vps-availability)\n- [Determine the device's Geospatial pose](/ar/develop/c/geospatial/obtain-device-pose)\n- [Geospatial anchors](/ar/develop/c/geospatial/anchors)\n- [Terrain anchors](/ar/develop/c/geospatial/anchors#terrain_anchors)\n- [API usage quota](/ar/develop/c/geospatial/api-usage-quota)\n\nSample app and codelab\n----------------------\n\nIf you want to run a sample app that demonstrates the functionality described\nhere, see the\n[ARCore Geospatial Quickstart for Android](/ar/develop/java/geospatial/quickstart)\nfor Java. The sample app in the Quickstart is written in Java. The code samples\nin this document are for the same functionality written in C.\n\nDevelopment requirements\n------------------------\n\nIf you're new to developing with ARCore, see [Getting started](/ar/develop/getting-started)\nfor information about software and hardware requirements, prerequisities and\nother information specific to the platforms you are using.\n\nBe sure your development environment satisfies the ARCore SDK requirements, as\ndescribed in the [Quickstart](/ar/develop/java/geospatial/quickstart) for Java."]]