Description Usage Arguments Details Value Author(s) References Examples
Calculates an unknown latitude given an initial latitude, distance traveled in meters and bearing.
1 | CalcLatitude(initialLat, distance, bearing)
|
initialLat |
initial Latitude |
distance |
distance in meters |
bearing |
bearing in radians |
Data must be provided in decimal degrees (e.g.162.546). Longitude values west of the prime meridian are 0 to -180.
Latitude values south of the equator are 0 to -90. Calculates an unknown latutude given an initial latitude, distance traveled in meters and bearing
in radians. This function is primarily used internally in the gpstable
and GeoReference
functions.
Latitude in radians
Brian Battaile
https://www.movable-type.co.uk/scripts/latlong.html
1 2 3 4 5 | #Calculate the latitude of Los Angeles given a starting point in Manhattan and the distance
#and bearing to Los Angeles.
Lat<-CalcLatitude (40.7697,3938000,-1.507516)
#transform to degrees
Lat*360/(2*pi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.