نظرة عامة على واجهة برمجة التطبيقات Datasets API في "خرائط Google"
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
مجموعات البيانات هي حاويات للبيانات التي تريد استخدامها في تطبيقاتك على "منصة خرائط Google" كجزء من التصميم المستند إلى البيانات.
تتيح لك واجهة برمجة التطبيقات Maps Datasets API إنشاء مجموعات بيانات وإدارتها باستخدام واجهة REST API.
على سبيل المثال، باستخدام ميزة "التصميم المستند إلى البيانات" لمجموعات البيانات، يمكنك تحميل بياناتك الجغرافية المكانية إلى مجموعة بيانات، وتطبيق تصميم مخصّص على عناصر البيانات، وعرض عناصر البيانات هذه على الخرائط. يمكنك إنشاء تصورات للبيانات استنادًا إلى أشكال هندسية على شكل نقاط وخطوط متعددة الأضلاع ومضلّعات، وجعل ميزات البيانات تستجيب لأحداث النقر.
يتطلّب إنشاء مجموعة بيانات خطوتَين:
قدِّم طلبًا لإنشاء مجموعة البيانات.
قدِّم طلبًا لتحميل البيانات إلى مجموعة البيانات من الكمبيوتر المكتبي أو Google Cloud Storage. يجب أن تكون بيانات التحميل ممثّلة بملف CSV أو GeoJSON أو KML.
لمزيد من المعلومات حول استخدام مجموعات البيانات كجزء من التصميم المستند إلى البيانات، يمكنك الاطّلاع على ما يلي:
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe Maps Datasets API allows you to create and manage datasets for use with data-driven styling in Google Maps Platform applications, enabling custom visualizations of geospatial data.\u003c/p\u003e\n"],["\u003cp\u003eDatasets can be populated with data from CSV, GeoJSON, or KML files, supporting point, polyline, and polygon geometries for data features.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the API to create, upload data to, list, retrieve information about, update, download data from, and delete datasets.\u003c/p\u003e\n"],["\u003cp\u003eThere is no charge for using the Maps Datasets API.\u003c/p\u003e\n"],["\u003cp\u003eTo get started, you'll need to set up your Google Cloud project and follow the provided instructions for dataset creation and management.\u003c/p\u003e\n"]]],["The Maps Datasets API facilitates the creation and management of datasets for data-driven styling in Google Maps Platform apps. Users can create a dataset via a REST API, then upload geospatial data (CSV, GeoJSON, or KML) from their desktop or Google Cloud Storage. Datasets can be listed, retrieved, updated, downloaded, or deleted using specific API endpoints. The process involves project setup, dataset creation and data upload, and then status retrieval. Using the Maps Datasets API has no charge.\n"],null,["# Maps Datasets API overview\n\nDatasets are containers for data that you want to use in your\nGoogle Maps Platform apps as part of **data-driven styling**.\nMaps Datasets API lets you create and manage datasets using a REST API.\n| **Note:** There is no charge for using the Maps Datasets API.\n\nFor example, with data-driven styling for datasets, you upload your own\ngeospatial data to a dataset, apply custom styling to the data features, and\ndisplay those data features on maps. You can create data visualizations based on\npoint, polyline, and polygon geometries, and make data features respond to click\nevents.\n\nCreating a dataset is a two step process:\n\n1. Make a request to create the dataset.\n\n2. Make a request to upload data to the dataset from your desktop or Google\n Cloud Storage. Your upload data must be represented by a CSV, GeoJSON, or\n KML file.\n\nFor more on using datasets as part of data-driven styling, see:\n\n- [Maps JavaScript API](/maps/documentation/javascript/dds-datasets/overview).\n- [Maps SDK for Android](/maps/documentation/android-sdk/dds-datasets/overview)\n- [Maps SDK for iOS](/maps/documentation/ios-sdk/dds-datasets/overview)\n\nHow the Maps Datasets API works\n-------------------------------\n\nThe Maps Datasets API has the following methods:\n\n- **Create dataset** : Use the\n [create](/maps/documentation/datasets/reference/rest/v1/projects.datasets/create) endpoint\n to create a dataset.\n\n- **Upload data** : Use the [upload](/maps/documentation/datasets/reference/rest/v1/media/upload) endpoint\n to upload data to your dataset.\n\n- **List datasets** : Use the [list](/maps/documentation/datasets/reference/rest/v1/projects.datasets/list)\n endpoint to fetch a list of all datasets.\n\n- **Get dataset** : Use the [get](/maps/documentation/datasets/reference/rest/v1/projects.datasets/get)\n endpoint to retrieve information about a specific dataset.\n\n- **Get dataset errors** : Use the\n [fetchDatasetErrors](/maps/documentation/datasets/reference/rest/v1/projects.datasets/fetchDatasetErrors)\n endpoint to retrieve error information about a dataset.\n\n- **Update dataset** : Use the [patch](/maps/documentation/datasets/reference/rest/v1/projects.datasets/patch)\n endpoint to update information about a specific dataset.\n\n- **Download dataset** : Use the [download](/maps/documentation/datasets/reference/rest/v1/media/download)\n endpoint to download the data from a dataset.\n\n- **Delete dataset** : Use the [delete](/maps/documentation/datasets/reference/rest/v1/projects.datasets/delete)\n endpoint to delete a dataset.\n\nHow to use the Maps Datasets API\n--------------------------------\n\n|---|-------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Get set up** | Start with [Set up your Google Cloud project](/maps/documentation/datasets/cloud-setup) and complete the instructions that follow. |\n| 2 | **Create a dataset and upload your data** | See [Create a dataset](/maps/documentation/datasets/create). |\n| 3 | **Get dataset information and status** | See [Get a dataset](/maps/documentation/datasets/get). |\n\nWhat's next\n-----------\n\n- [Set up your Google Cloud project](/maps/documentation/datasets/cloud-setup)\n- [Use OAuth](/maps/documentation/datasets/oauth-token)"]]