SphericalDistance

As of Version 7.0, SphericalDistance has been superseded by GeoDistance.

SphericalDistance[pt1,pt2]
gives the distance between points pt1 and pt2 on Earth using a spherical model of the planet.

更多信息更多信息

  • To use SphericalDistance, you first need to load the Geodesy Package using Needs["Geodesy`"].
  • A point pti is expressed as a pair of numbers {latitude,longitude}.
  • Each coordinate latitude and longitude can be given in degrees, or as {degrees,minutes}, or {degrees,minutes,seconds}.
  • A negative value for a coordinate indicates that the coordinate is South latitude or West longitude.
  • Distances are returned in kilometers.
  • The spherical model is based on an exact formula.
  • The following option can be given:
  • Radius6371007/1000specify the radius of the sphere
  • With the setting Radius ->r the radius of the spherical model is assumed to be r kilometers.
Translate this page: