Geography
BigQuery
ST_ASGEOJSON
Mengkonversi GEOGRAPHY ke GeoJSON string.
Tipe hasil:
STRINGSyntax
SQL
ST_ASGEOJSON(geography)Parameter
geographyGEOGRAPHYwajib
Objek geografi
Contoh Penggunaan
Export to GeoJSON
SQL
1 SELECT ST_ASGEOJSON(ST_GEOGPOINT(106.8456, -6.2088)) AS geojson;
Convert point ke GeoJSON.
Hasil
geojson: {"type":"Point","coordinates":[106.8456,-6.2088]}