The {gcd} package for R contains several tools for working with latitude and longitude values and obtaining estimated distances between points. The name of the package comes from the term "great circle distance" used to describe distances on the surface of the "Great Circle" (Earth). There are a few different methods for estimating the distance with varying trade-offs of efficiency vs. accuracy. -Spherical Law of Cosines (slc): assumes spherical shape; sensitive to very close distances -Haversine formula (haversine): assumes spherical shape; more robust to close distances -Vincenty inverse formula for ellipsoids (vincenty): uses ellipsoid shape with Earth's polar radius and equatorial radius Using these methods, the {gcd} package allows users to make easy measurements from place to place on the Earth's surface in km or miles. Additionally, the {gcd} package now includes a funtion to calculate the drive time between two points, as radians or degrees, using the HERE.com Routing API. -Functions to access HERE.com's geocoding and routing API (version 0.0.2) -Function to access HERE.com's isoline API (version 0.0.4.2) -Update to use HERE API keys as the platform transitions away from App + Key Pairs (version 0.0.4.2) -Functions to access Google's geocoding and directions API (version 0.0.3) -Addition of a simple data set (ny_sports) for examplars (version 0.0.3.4)
Package details |
|
---|---|
Author | Mike DeCarlo [aut, cre] |
Maintainer | Mike DeCarlo <mikedecarlo.rdev@gmail.com> |
License | file LICENSE |
Version | 0.0.4.2.9002 |
URL | https://github.com/mike-decarlo/gcd |
Package repository | View on GitHub |
Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.