Package: geographiclib 0.4.2.9002

Michael Sumner

geographiclib: Access to 'GeographicLib'

Bindings to the 'GeographicLib' C++ library <https://geographiclib.sourceforge.io/> for precise geodetic calculations including geodesic computations (distance, bearing, paths, intersections), map projections (UTM/UPS, Transverse Mercator, Lambert Conformal Conic, and more), grid reference systems (MGRS, Geohash, GARS, Georef), coordinate conversions (geocentric, local Cartesian), and polygon area on the WGS84 ellipsoid. All functions are fully vectorized.

Authors:Michael Sumner [cre, aut], Charles Karney [cph, aut], Mark Borgerding [cph]

geographiclib_0.4.2.9002.tar.gz
geographiclib_0.4.2.9002.zip(r-4.7)geographiclib_0.4.2.9002.zip(r-4.6)geographiclib_0.4.2.9002.zip(r-4.5)
geographiclib_0.4.2.9002.tgz(r-4.6-x86_64)geographiclib_0.4.2.9002.tgz(r-4.6-arm64)geographiclib_0.4.2.9002.tgz(r-4.5-x86_64)geographiclib_0.4.2.9002.tgz(r-4.5-arm64)
geographiclib_0.4.2.9002.tar.gz(r-4.7-arm64)geographiclib_0.4.2.9002.tar.gz(r-4.7-x86_64)geographiclib_0.4.2.9002.tar.gz(r-4.6-arm64)geographiclib_0.4.2.9002.tar.gz(r-4.6-x86_64)
geographiclib_0.4.2.9002.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
geographiclib/json (API)

# Install 'geographiclib' in R:
install.packages('geographiclib', repos = c('https://hypertidy.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hypertidy/geographiclib/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

7.28 score 9 stars 4 packages 10 scripts 949 downloads 74 exports 1 dependencies

Last updated from:dd9bac8e49. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK224
linux-devel-x86_64OK206
source / vignettesOK286
linux-release-arm64OK217
linux-release-x86_64OK199
macos-release-arm64OK114
macos-release-x86_64OK284
macos-oldrel-arm64OK118
macos-oldrel-x86_64OK253
windows-develOK244
windows-releaseOK227
windows-oldrelOK189
wasm-releaseOK191

Exports:albers_fwdalbers_revazeq_fwdazeq_revcassini_fwdcassini_revdms_combinedms_decodedms_decode_angledms_decode_azimuthdms_decode_latlondms_encodedms_splitellipsoid_circleellipsoid_curvatureellipsoid_latitudesellipsoid_latitudes_invellipsoid_paramsgars_fwdgars_revgeocentric_fwdgeocentric_revgeocoords_parsegeodesic_directgeodesic_direct_fastgeodesic_distancegeodesic_distance_fastgeodesic_distance_matrixgeodesic_distance_matrix_fastgeodesic_intersectgeodesic_intersect_allgeodesic_intersect_nextgeodesic_intersect_segmentgeodesic_inversegeodesic_inverse_fastgeodesic_linegeodesic_nngeodesic_nn_radiusgeodesic_pathgeodesic_path_fastgeohash_fwdgeohash_lengthgeohash_resolutiongeohash_revgeoref_fwdgeoref_revgnomonic_fwdgnomonic_revlcc_fwdlcc_revlocalcartesian_fwdlocalcartesian_revmgrs_fwdmgrs_revosgb_fwdosgb_gridrefosgb_gridref_revosgb_revpolarstereo_fwdpolarstereo_revpolygon_areapolygon_area_cumulativerhumb_directrhumb_distancerhumb_distance_matrixrhumb_inverserhumb_linerhumb_pathtm_exact_fwdtm_exact_revtm_fwdtm_revutmups_fwdutmups_rev

Dependencies:cpp11

Grid Reference Systems: MGRS, Geohash, GARS, and Georef
Contents | Example Locations | MGRS - Military Grid Reference System | Basic Conversion | Understanding MGRS Codes | Precision Levels | Polar Regions (UPS) | Vectorized Operations | Geohash | The Truncation Property | Resolution by Length | Finding Required Length for Precision | Southern Hemisphere Examples | GARS - Global Area Reference System | GARS for Antarctic Locations | Georef - World Geographic Reference System | Georef for Flight Planning | Comparison of Systems | GeoCoords - Universal Coordinate Parsing | Parsing Various Formats | Parsing Multiple Coordinates | Integration with Other Functions | DMS - Degrees, Minutes, Seconds Conversion | Parsing DMS Strings | Parsing Coordinate Pairs | Parsing Angles and Azimuths | Encoding to DMS Strings | Output Formats | Splitting and Combining Components | Round-Trip Conversion | Integration with GeoCoords | See Also

Last update: 2026-01-04
Started: 2025-12-23

Geodesic Calculations
Contents | Example Locations | The Inverse Problem: Distance and Bearing | Basic Distance Calculation | Understanding Azimuth | Distances Between Cities | Antarctic Distances | The Direct Problem: Finding Destinations | Basic Direct Calculation | Creating a "Circle" of Destinations | Antarctic Traverse Planning | Geodesic Paths | Sydney to London Great Circle | Antarctic Circle Path | Trans-Antarctic Path | Distance Matrices | City Distance Matrix | Antarctic Station Distances | Cross-Matrix: Cities to Antarctic Stations | Rhumb Lines (Loxodromes) | Geodesic vs Rhumb | East-West Travel | Rhumb Path | Polygon Area | Antarctic Ice Shelf Area | Multiple Polygons | Winding Direction Matters | Exact vs Fast Geodesic | Performance Comparison | Geodesic Intersections | Closest Intersection | Segment Intersection | Non-Intersecting Segments | Next Intersection | All Intersections Within a Distance | Practical Example: Great Circle Route Crossings | Vectorized Operations | Nearest Neighbor Search | Basic k-Nearest Neighbors | Multiple Query Points | Radius Search | Self-Search for Clustering | Distance Matrix | Performance | See Also

Last update: 2026-01-04
Started: 2025-12-23

Introduction to geographiclib
Contents | MGRS - Military Grid Reference System package provides R bindings to the | MGRS - Military Grid Reference System | UTM/UPS - Universal Transverse Mercator | Geohash | GARS - Global Area Reference System | Georef - World Geographic Reference System | Lambert Conformal Conic Projection | Azimuthal Equidistant Projection | Cassini-Soldner Projection | Gnomonic Projection | OSGB - Ordnance Survey National Grid | Local Cartesian (ENU) Coordinates | Geocentric (ECEF) Coordinates | WGS84 Ellipsoid | Geodesic Calculations | Inverse problem: distance and bearing between points | Direct problem: destination from start, bearing, and distance | Geodesic paths | Distance matrix | Rhumb Lines (Loxodromes) | Polygon Area | Polar Regions | Performance | Further Reading

Last update: 2026-01-04
Started: 2025-12-22

Local Coordinates and the Ellipsoid
Contents | Example Locations | Geocentric (ECEF) Coordinates | Basic Conversion | Understanding ECEF | Height Above Ellipsoid | Antarctic Stations in ECEF | Round-trip Conversion | GPS Applications | Local Cartesian (ENU) Coordinates | Local Survey Application | Including Height | Robotics/Navigation Application | WGS84 Ellipsoid Properties | Basic Parameters | Earth's Shape | Radii of Curvature | Circle of Latitude Properties | Auxiliary Latitudes | Combining Coordinate Systems | GNSS Data Processing | Antarctic Field Survey | Coordinate System Summary | See Also

Last update: 2026-01-04
Started: 2025-12-23

Map Projections
Contents | Example Locations | UTM/UPS - Universal Transverse Mercator | Basic Conversion | Understanding UTM Zones | Polar Regions (UPS) | Round-trip Conversion | Transverse Mercator (Custom) | Lambert Conformal Conic (LCC) | Single Standard Parallel | Two Standard Parallels | LCC for Antarctica | Albers Equal Area | Two Standard Parallels (Most Common) | CONUS Albers (US Standard) | Antarctic Albers | Why Equal-Area Matters | Polar Stereographic | Antarctic Stations | Arctic Points | Pole at Origin | Azimuthal Equidistant | Distances from Sydney | Distances from South Pole | Cassini-Soldner Projection | Regional Mapping | Cassini for Antarctic Survey | Gnomonic Projection | Great Circle Routes Appear Straight | Route Planning | OSGB - Ordnance Survey National Grid | Grid References | Projection Comparison | See Also

Last update: 2026-01-04
Started: 2025-12-23

Readme and manuals

Help Manual

Help pageTopics
Albers Equal Area projectionalbers_fwd albers_rev
Azimuthal Equidistant projectionazeq_fwd azeq_rev
Cassini-Soldner projectioncassini_fwd cassini_rev
Convert between degrees and DMS (degrees, minutes, seconds) representationdms_combine dms_decode dms_decode_angle dms_decode_azimuth dms_decode_latlon dms_encode dms_split
WGS84 Ellipsoid parameters and calculationsellipsoid_circle ellipsoid_curvature ellipsoid_latitudes ellipsoid_latitudes_inv ellipsoid_params
Global Area Reference System (GARS)gars_fwd gars_rev
Convert between geodetic and geocentric (ECEF) coordinatesgeocentric_fwd geocentric_rev
Parse Geographic Coordinate Stringsgeocoords_parse
Geodesic calculations on the WGS84 ellipsoidgeodesic_direct geodesic_distance geodesic_distance_matrix geodesic_inverse geodesic_line geodesic_path
Fast geodesic calculations (series approximation)geodesic_direct_fast geodesic_distance_fast geodesic_distance_matrix_fast geodesic_inverse_fast geodesic_path_fast
Geodesic intersectionsgeodesic_intersect geodesic_intersect_all geodesic_intersect_next geodesic_intersect_segment
Nearest Neighbor Search Using Geodesic Distancegeodesic_nn geodesic_nn_radius
Convert coordinates to/from Geohashgeohash_fwd geohash_length geohash_resolution geohash_rev
World Geographic Reference System (Georef)georef_fwd georef_rev
Gnomonic projectiongnomonic_fwd gnomonic_rev
Lambert Conformal Conic projectionlcc_fwd lcc_rev
Local Cartesian (ENU) coordinate systemlocalcartesian_fwd localcartesian_rev
Convert coordinates to/from Military Grid Reference System (MGRS)mgrs_fwd mgrs_rev
Ordnance Survey National Grid (Great Britain)osgb_fwd osgb_gridref osgb_gridref_rev osgb_rev
Polar Stereographic projectionpolarstereo_fwd polarstereo_rev
Compute geodesic polygon area and perimeterpolygon_area
Compute cumulative polygon area and perimeterpolygon_area_cumulative
Rhumb line (loxodrome) calculations on the WGS84 ellipsoidrhumb_direct rhumb_distance rhumb_distance_matrix rhumb_inverse rhumb_line rhumb_path
Transverse Mercator projectiontm_exact_fwd tm_exact_rev tm_fwd tm_rev
Convert coordinates to/from UTM/UPS projectionutmups_fwd utmups_rev