DistanceBetweenPlanets

DistanceBetweenPlanets(Anglea,Angleb)

Returns the shortest angular distance between two zodiac longitudes. The method calculates the absolute difference between the two angles normalizes the difference within the 360degree circle folds values greater than 180 into the shorter opposite arc returns the final distance as an Angle.

Parameters

NameTypeDescription
a Angle The first longitude.
b Angle The second longitude.

Calling this method

Endpoint base: https://api.vedastro.org/api/Calculate/DistanceBetweenPlanets

Most Calculate methods accept parameters either as URL path segments (GET) or as a JSON body (POST), keyed by parameter name. The exact request shape varies per method — see the Getting Started guide for the response envelope, StdTime format, and Ayanamsa conventions that apply across the API. Use the "Try it" panel below to build and send a real request and see the exact call this method expects.

Loading try-it widget…