GoogleCloudPlatform / bigquery-geo-viz

Visualize Google BigQuery geospatial data using Google Maps Platform APIs
https://bigquerygeoviz.appspot.com/
Apache License 2.0
107 stars 38 forks source link

Points are off the map #33

Closed sciciliani closed 4 years ago

sciciliani commented 4 years ago

Running this example query and visualizing through bigquerygeoviz

SELECT ST_GEOGPOINT(lat, lon) as geo FROM properati-data-public.properties_ar.properties_sell_201802 WHERE lat_lon <> '' limit 500

As you see results are outside the continent

Screen Shot 2020-02-05 at 12 19 42

Same point from resultset in Google Maps provides correct location

Screen Shot 2020-02-05 at 12 23 45

donmccurdy commented 4 years ago

The ST_GEOGPOINT SQL function requires lng, lat rather than lat, lng — see https://cloud.google.com/bigquery/docs/reference/standard-sql/geography_functions#st_geogpoint.