TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

SqlGeography.ShortestLineTo Method (SqlGeography)

 

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.

Return to top
Show:
© 2016 Microsoft