SqlGeography.ShortestLineTo Method (SqlGeography)

 

Applies To: SQL Server 2016 Preview

Returns the shortest distance between the two SqlGeographyinstances.

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

Syntax

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeography ShortestLineTo(
    SqlGeography other
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlGeography^ ShortestLineTo(
    SqlGeography^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member ShortestLineTo : 
        other:SqlGeography -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function ShortestLineTo (
    other As SqlGeography
) As SqlGeography

Parameters

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography

The shortest distance between the two SqlGeography instances.

See Also

SqlGeography Class
Microsoft.SqlServer.Types Namespace
ShortestLineTo (geography Data Type)

Return to top