R/coordinate_utils.R
cal_gps_dist.Rd
Calculate earth distance between two points gps longitude and latitude.
cal_gps_dist(lon_s, lat_s, lon_e, lat_e)
lon_s | Start gps longitude |
---|---|
lat_s | Start gps latitude |
lon_e | End gps longitude |
lat_e | End gps latitude |
Distance of double type in meters.
cal_gps_dist(121.434174,31.158213,121.444366,31.169403)#> [1] 1579.313# meters