Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/getting-data/data-mirrors/bigquery.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Comment thread
jjcfrancisco marked this conversation as resolved.
LIMIT 100;
```

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-data/data-mirrors/snowflake.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```

Expand Down
2 changes: 1 addition & 1 deletion src/queries/Snowflake/snowflake_places.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/queries/athena/seattle_places.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SELECT
id,
names,
addresses,
categories,
taxonomy,
confidence,
sources,
ST_GEOMFROMBINARY(geometry) AS geometry
Expand Down
2 changes: 1 addition & 1 deletion src/queries/duckdb/new_york_pizza.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY( -- COPY <query> TO <output> 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');
2 changes: 1 addition & 1 deletion src/queries/duckdb/places_wawa.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/queries/duckdb/seattle_places_for_map.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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/*/*')
Expand Down
2 changes: 1 addition & 1 deletion src/queries/synapse/seattle_places.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM
WITH
(
names VARCHAR(MAX),
categories VARCHAR(MAX),
taxonomy VARCHAR(MAX),
websites VARCHAR(MAX),
phones VARCHAR(MAX),
bbox VARCHAR(200),
Expand Down
Loading