Learn R Programming

geosphere (version 1.6-5)

Spherical Trigonometry

Description

Spherical trigonometry for geographic applications. That is, compute distances and related measures for angular (longitude/latitude) locations.

Copy Link

Version

Install

install.packages('geosphere')

Monthly Downloads

28,568

Version

1.6-5

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

March 2nd, 2026

Functions in geosphere (1.6-5)

gcLat

Latitude on a Great Circle
gcMaxLat

Highest latitude on a great circle
geodesic

geodesic and inverse geodesic problem
makePoly

Add vertices to a polygon or line
lengthLine

Length of lines
distm

Distance matrix
finalBearing

Final direction
perimeter

Compute the perimeter of a longitude/latitude polygon
onGreatCircle

Is a point on a given great circle?
gcIntersectBearing

Intersections of two great circles
gcLon

Longitude on a Great Circle
intermediate

Intermediate points on a great circle (sphere)
horizon

Distance to the horizon
mercator

Mercator projection
midPoint

Mid-point
distVincentySphere

'Vincenty' (sphere) great circle distance
gcIntersect

Intersections of two great circles
randomCoordinates

Random or regularly distributed coordinates on the globe
greatCircleBearing

Great circle
geosphere-package

Geosphere
greatCircle

Great circle
plotArrows

Plot
geomean

Mean location of sperhical coordinates
refEllipsoids

Reference ellipsoids
span

Span of polygons
OSGB

Ordnance Survey for Great Britain grid reference system
destPoint

Destination given bearing (direction) and distance
bearingRhumb

Rhumbline direction
antipode

Antipodes
areaPolygon

Area of a longitude/latitude polygon
alongTrackDistance

Along Track Distance
dist2gc

Cross Track Distance
distCosine

'Law of cosines' great circle distance
daylength

Daylength
distGeo

Distance on an ellipsoid (the geodesic)
wrld

World countries
distHaversine

'Haversine' great circle distance
dist2Line

Distance between points and lines or the border of polygons.
centroid

Centroid of spherical polygons
destPointRhumb

Destination along a rhumb line
distVincentyEllipsoid

'Vincenty' (ellipsoid) great circle distance
distMeeus

'Meeus' great circle distance
distRhumb

Distance along a rhumb line
bearing

Direction of travel