Export (0) Print
Expand All

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


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

© 2015 Microsoft