itacart.geodesy.direct_geodesic
- itacart.geodesy.direct_geodesic(lon1_deg, lat1_deg, azimuth_deg, distance_m, *, tol=VINCENTY_TOL_RAD, max_iter=VINCENTY_MAX_ITER)[source]
Return the end point of a geodesic given start, azimuth and length.
Vincenty direct solution on the WGS84 ellipsoid. The end point lies on the unique geodesic leaving the start point along
azimuth_deg, at arc lengthdistance_m.- Parameters:
lon1_deg (
float) – Longitude of the start point, in degrees.lat1_deg (
float) – Latitude of the start point, in degrees.azimuth_deg (
float) – Forward azimuth at the start point, in degrees clockwise from north.distance_m (
float) – Geodesic distance, in metres. Zero returns the start point unchanged.tol (
float, default:VINCENTY_TOL_RAD)max_iter (
int, default:VINCENTY_MAX_ITER)
- Return type:
- Returns:
(lon2_deg, lat2_deg)in degrees, longitude normalised to(-180, 180].- Raises:
DomainError – If any argument is not finite,
lat1_deglies outside[-90, 90], ordistance_mis negative. A negative distance is a sign error at the call site, not a reverse traverse; accepting it would return a plausible point on the opposite side.ConvergenceError – If the iteration does not converge.