DbGeography.Distance Method (DbGeography)

 

Computes the distance between the closest points in this DbGeography value and another DbGeography value.

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

public Nullable<double> Distance(
	DbGeography other
)

Parameters

other
Type: System.Data.Entity.Spatial.DbGeography

The geography value for which the distance from this value should be computed.

Return Value

Type: System.Nullable<Double>

A double value that specifies the distance between the two closest points in this geography value and other.