Calculate earth distance between two points gps longitude and latitude.

cal_gps_dist(lon_s, lat_s, lon_e, lat_e)

Arguments

lon_s

Start gps longitude

lat_s

Start gps latitude

lon_e

End gps longitude

lat_e

End gps latitude

Value

Distance of double type in meters.

Examples

cal_gps_dist(121.434174,31.158213,121.444366,31.169403)
#> [1] 1579.313
# meters