Datasets are containers for data that you want to use in your Google Maps Platform apps as part of data-driven styling. Maps Datasets API lets you create and manage datasets using a REST API.
For example, with data-driven styling for datasets, you upload your own geospatial data to a dataset, apply custom styling to the data features, and display those data features on maps. You can create data visualizations based on point, polyline, and polygon geometries, and make data features respond to click events.
Creating a dataset is a two step process:
Make a request to create the dataset.
Make a request to upload data to the dataset from your desktop or Google Cloud Storage. Your upload data must be represented by a CSV, GeoJSON, or KML file.
For more on using datasets as part of data-driven styling, see:
How the Maps Datasets API works
The Maps Datasets API has the following methods:
Create dataset: Use the create endpoint to create a dataset.
Upload data: Use the upload endpoint to upload data to your dataset.
List datasets: Use the list endpoint to fetch a list of all datasets.
Get dataset: Use the get endpoint to retrieve information about a specific dataset.
Get dataset errors: Use the fetchDatasetErrors endpoint to retrieve error information about a dataset.
Update dataset: Use the patch endpoint to update information about a specific dataset.
Download dataset: Use the download endpoint to download the data from a dataset.
Delete dataset: Use the delete endpoint to delete a dataset.
How to use the Maps Datasets API
1 | Get set up | Start with Set up your Google Cloud project and complete the instructions that follow. |
2 | Create a dataset and upload your data | See Create a dataset. |
3 | Get dataset information and status | See Get a dataset. |