✅ Azure Stream Analytics ✅ Fabric Eventstream
2 点間の測地距離をメートル単位で返します。 デカルト距離は投影計算を必要とし、サポートされていませんが、ユーザー定義関数で実装できます。 Polygon と共に使用すると、0 が返されます。
構文
ST_DISTANCE ( pointA, pointB )
引数
PointA
距離を測定するポイント。
PointB
距離を測定するポイント。
返り値の種類
2 点間の距離をメートル単位で返します。
例
SELECT
ST_DISTANCE(input.carPosition, input.warehouse)
FROM input
入力例
carPosition | 倉庫 |
---|---|
{"type":"Point", "coordinates": [-5.0, -5.0]} | {"type":"Point", "coordinates": [0.0, 0.0]} |
出力の例
784028.74077501823
こちらもご覧ください
- 地理空間関数
- CreateLineString
- CreatePoint の
- CreatePolygon
- ST_OVERLAPS
- ST_INTERSECTS
- ST_WITHIN