WOLFRAM 语言内置符号

# GeoDistance

GeoDistance[{lat1,long1},{lat2,long2}]
gives the geodesic distance between latitude-longitude positions on the Earth.

GeoDistance[pos1,pos2]
gives the distance between positions specified by position objects or geographical entities.

## 更多信息和选项更多信息和选项

• The result is returned as a Quantity object with dimensions of length.
• Latitudes and longitudes can be given in degrees, as DMS strings, or as Quantity angles.
• GeoDistance["latlong1","latlong2"] gives the distance between positions specified by latitudes and longitudes given as strings.
• Position objects in GeoDistance[pos1,pos2] can be given as GeoPosition, GeoPositionXYZ, GeoPositionENU, or GeoGridPosition objects.
• GeoDistance gives the distance between positions projected onto a reference ellipsoid; heights are ignored.
• GeoDistance[pos1,pos2] by default uses the reference ellipsoid associated with the datum for .
• GeoDistance and GeoDirection solve the geodetic inverse problem.
• In GeoDistance[pos1,pos2], the can be Entity objects with domains such as and .
• For entities corresponding to extended geographic regions, GeoDistance by default computes the minimum distance between any points in the regions.
• GeoDistance has option DistanceFunction, with the following settings:
•  "Boundary" minimum distance between any points in regions "Center" distance between centers of regions "SignedBoundary" distance to boundary, negative for interior points

## 范例范例打开所有单元关闭所有单元

### 基本范例  (3)基本范例  (3)

Distance between two positions on the reference ellipsoid:

 Out[1]=

Distance between two cities:

 Out[1]=

Distance between two fully specified geodetic positions:

 Out[1]=

2008年引入
(7.0)
| 2014年更新
(10.0)