Description Usage Arguments Details Examples

This function computes the distance between two geographical coordinates. These locations must be in decimal degrees.

1 | ```
ComputeDistance(Lat1, Lat2, Lon1, Lon2)
``` |

`Lat1 ` |
the latitude of the first coordinate |

`Lat2 ` |
the latitude of the second coordinate |

`Lon1 ` |
the longitude of the first coordinate |

`Lon2 ` |
the longitude of the second coordinate |

Coordinates are given in decimal degrees (WGS 84)

1 2 | ```
# Calculate the distance between two coordinates
ComputeDistance(-12.19506,-12.19477,141.8946,141.8980)
``` |

```
Loading required package: foreach
[1] 0.3709359
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.