Export (0) Print
Expand All
Expand Minimize

SqlGeography.ShortestLineTo Method

Returns the shortest distance between the two SqlGeographyinstances.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeography ShortestLineTo(
	SqlGeography other
)

Parameters

other
Type: Microsoft.SqlServer.Types.SqlGeography
The SqlGeography instance that the calling SqlGeography instance is trying to determine the shortest distance to.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography
The shortest distance between the two SqlGeography instances.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft