DbGeography.Distance(DbGeography) 方法

定义

计算此 DbGeography 值和其他 DbGeography 值中两个最接近的点之间的距离。

public Nullable<double> Distance(System.Data.Entity.Spatial.DbGeography other);
member this.Distance : System.Data.Entity.Spatial.DbGeography -> Nullable<double>
Public Function Distance (other As DbGeography) As Nullable(Of Double)

参数

other
DbGeography

与该值的距离应被计算出来的地理值。

返回

一个双精度值,指定此地理值和其他两个最靠近点之间的距离。

适用于