SqlGeography.ShortestLineTo(SqlGeography) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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