diff --git a/docs/getting-data/data-mirrors/bigquery.mdx b/docs/getting-data/data-mirrors/bigquery.mdx index cce1341d9..b6ed70377 100644 --- a/docs/getting-data/data-mirrors/bigquery.mdx +++ b/docs/getting-data/data-mirrors/bigquery.mdx @@ -57,7 +57,7 @@ To get started using Overture data in BigQuery, you must create or select a Goog -- Identify places within the "Restaurant" category SELECT id, phones.list[0].element AS phone, names.primary AS name FROM `bigquery-public-data.overture_maps.place` - WHERE categories.primary = "restaurant" + WHERE taxonomy.primary = "restaurant" LIMIT 100; ``` diff --git a/docs/getting-data/data-mirrors/snowflake.mdx b/docs/getting-data/data-mirrors/snowflake.mdx index 0ae61083e..4a9135d02 100644 --- a/docs/getting-data/data-mirrors/snowflake.mdx +++ b/docs/getting-data/data-mirrors/snowflake.mdx @@ -40,7 +40,7 @@ Overture data is accessible through the [Snowflake Data Marketplace](https://app -- Identify places within the "Restaurant" category SELECT id, phones['list'][0]['element'] AS phone, names['primary'] AS name FROM CARTO.PLACE - WHERE categories['primary'] = 'restaurant' + WHERE taxonomy['primary'] = 'restaurant' LIMIT 100; ``` diff --git a/src/queries/Snowflake/snowflake_places.sql b/src/queries/Snowflake/snowflake_places.sql index 47d7aebca..6efd7fa4b 100644 --- a/src/queries/Snowflake/snowflake_places.sql +++ b/src/queries/Snowflake/snowflake_places.sql @@ -4,5 +4,5 @@ Retrieves the geographic IDs (geoid), phone numbers (phones), and primary names */ SELECT id, phones['list'][0]['element'] AS phone, names['primary'] AS name FROM CARTO.PLACE -WHERE categories['primary'] = 'restaurant' +WHERE taxonomy['primary'] = 'restaurant' LIMIT 100; diff --git a/src/queries/athena/seattle_places.sql b/src/queries/athena/seattle_places.sql index b1b40302d..32fd825f8 100644 --- a/src/queries/athena/seattle_places.sql +++ b/src/queries/athena/seattle_places.sql @@ -2,7 +2,7 @@ SELECT id, names, addresses, - categories, + taxonomy, confidence, sources, ST_GEOMFROMBINARY(geometry) AS geometry diff --git a/src/queries/duckdb/new_york_pizza.sql b/src/queries/duckdb/new_york_pizza.sql index 0bc4c0102..ea575384c 100644 --- a/src/queries/duckdb/new_york_pizza.sql +++ b/src/queries/duckdb/new_york_pizza.sql @@ -12,7 +12,7 @@ COPY( -- COPY TO saves th FROM read_parquet('s3://overturemaps-us-west-2/release/__OVERTURE_RELEASE/theme=places/type=place/*', filename=true, hive_partitioning=1) WHERE - categories.primary = 'pizza_restaurant' + taxonomy.primary = 'pizza_restaurant' AND bbox.xmin BETWEEN -75 AND -73 -- Only use the bbox min values AND bbox.ymin BETWEEN 40 AND 41 -- because they are point geometries. ) TO 'nyc_pizza.geojson' WITH (FORMAT GDAL, DRIVER 'GeoJSON'); diff --git a/src/queries/duckdb/places_wawa.sql b/src/queries/duckdb/places_wawa.sql index e2b4b58dc..f745b3166 100644 --- a/src/queries/duckdb/places_wawa.sql +++ b/src/queries/duckdb/places_wawa.sql @@ -7,7 +7,7 @@ COPY( SELECT id, names.primary as name, - categories.primary as category, + taxonomy.primary as category, addresses[1].freeform as address, geometry FROM read_parquet( diff --git a/src/queries/duckdb/seattle_places_for_map.sql b/src/queries/duckdb/seattle_places_for_map.sql index 8c236f4e9..41f000bdf 100644 --- a/src/queries/duckdb/seattle_places_for_map.sql +++ b/src/queries/duckdb/seattle_places_for_map.sql @@ -5,7 +5,7 @@ SET s3_region='us-west-2'; COPY ( SELECT names.primary AS name, - categories.primary as category, + taxonomy.primary as category, ROUND(confidence,2) as confidence, geometry -- DuckDB v.1.1.0 will autoload this as a `geometry` type FROM read_parquet('s3://overturemaps-us-west-2/release/__OVERTURE_RELEASE/theme=places/*/*') diff --git a/src/queries/synapse/seattle_places.sql b/src/queries/synapse/seattle_places.sql index b47b2500b..4b48ca09d 100644 --- a/src/queries/synapse/seattle_places.sql +++ b/src/queries/synapse/seattle_places.sql @@ -7,7 +7,7 @@ FROM WITH ( names VARCHAR(MAX), - categories VARCHAR(MAX), + taxonomy VARCHAR(MAX), websites VARCHAR(MAX), phones VARCHAR(MAX), bbox VARCHAR(200),