Skip to content

Instantly share code, notes, and snippets.

@mbforr
Last active January 8, 2023 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mbforr/cb24472027dc42a0423133f43e0c6622 to your computer and use it in GitHub Desktop.
Save mbforr/cb24472027dc42a0423133f43e0c6622 to your computer and use it in GitHub Desktop.
SELECT
a.vendor_id,
b.geo_id
FROM
PROJECT.DATASET.nyc a
JOIN
bigquery-public-data.geo_census_blockgroups.us_blockgroups_national b
ON
st_intersects(a.geom,
b.blockgroup_geom)
LIMIT
1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment