Introduction to geospatial analytics

In a data warehouse like BigQuery, location information iscommon and can influence critical business decisions. You can use geospatialanalytics to analyze and visualize geospatial data in BigQueryby using theGEOGRAPHY data typeandGoogleSQL geography functions.

For example, you might record the latitude and longitude of your deliveryvehicles or packages over time. You might also record customer transactions andjoin the data to another table with store location data. You can use this typeof location data to do the following:

  • Estimate when a package is likely to arrive.
  • Determine which customers should receive a mailer for a particularstore location.
  • Combine your data with percent tree cover from satellite imagery to decideif delivery by aerial drone is feasible.

Limitations

Geospatial analytics is subject to the following limitations:

  • Geography functionsare available only in GoogleSQL.
  • Only the BigQuery client library for Python supportstheGEOGRAPHY data type. For other client libraries, convertGEOGRAPHYvalues to strings by using theST_ASTEXT orST_ASGEOJSON function.Converting to text usingST_ASTEXT stores only one value, and convertingto WKT means that the data is annotated as aSTRING type instead of aGEOGRAPHY type.

Quotas

Quotas and limits on geospatial analytics apply to the different types ofjobs you can run against tables that contain geospatial data, including thefollowing job types:

For more information on all quotas and limits, seeQuotas and limits.

Pricing

When you use geospatial analytics, your charges are based on thefollowing factors:

  • How much data is stored in the tables that contain geospatialdata
  • The queries you run against the data

For information on storage pricing, seeStorage pricing.

For information on query pricing, seeAnalysis pricing models.

Many table operations are free, including loading data, copying tables, andexporting data. Though free, these operations are subject toBigQuery'sQuotas and limits. For informationon all free operations, seeFree operations on thepricing page.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.