SqlGeography.ShortestLineTo(SqlGeography) Method

Definition

Returns the shortest distance between the two SqlGeographyinstances.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public Microsoft.SqlServer.Types.SqlGeography ShortestLineTo (Microsoft.SqlServer.Types.SqlGeography other);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
member this.ShortestLineTo : Microsoft.SqlServer.Types.SqlGeography -> Microsoft.SqlServer.Types.SqlGeography
Public Function ShortestLineTo (other As SqlGeography) As SqlGeography

Parameters

other
SqlGeography

The SqlGeography instance that the calling SqlGeography instance is trying to determine the shortest distance to.

Returns

The shortest distance between the two SqlGeography instances.

Attributes

Applies to