Skip to content

Commit

Permalink
chore: add new utils query
Browse files Browse the repository at this point in the history
  • Loading branch information
d116626 committed Jul 5, 2024
1 parent 8ffd8c8 commit e9a0f57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions queries/models/utils/pedido_placas_inside_polygon.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ WITH loc AS (
ON t1.codcet = t2.codcet
WHERE ST_WITHIN(
ST_GEOGPOINT(CAST(t1.longitude AS FLOAT64), CAST(t1.latitude AS FLOAT64)),
-- use https://geojson.io/ to draw the polygon
-- and bigquery geoviz to plot
ST_GEOGFROMTEXT('POLYGON((-43.351199422135096 -22.826481599522367,-43.34755181206776 -22.83300036381351,-43.29269719282209 -22.81763133085856,-43.260182765280035 -22.838401207849614,-43.256147872926846 -22.8356131483648,-43.284885416297016 -22.8084810143404,-43.351199422135096 -22.826481599522367))')
)
AND t1.locequip LIKE "AVENIDA BRASIL%"
Expand Down

0 comments on commit e9a0f57

Please sign in to comment.