In Cosmos DB, what is the units for the value returned by the ST_DISTANCE
function? The docs are unhelpful in this regard:
Returns the distance between the two GeoJSON Point, Polygon, or LineString expressions.
Actually,I did not find any official statements for the exact units by the ST_DISTANCE
function in the documents as same as you. But I use the example in the link to test with sql query.
SQL:
And I calculate the distance between the two coordinates with online tool.
Based on the results of test, I think the unit of the function is meter.Of course, you could commit feedback to verify the conclusion.
refer this official doc from MS in which they have mentioned it as in meters. https://learn.microsoft.com/en-us/azure/cosmos-db/sql-query-st-distance