DistanceBetweenPlanets
DistanceBetweenPlanets(PlanetNameplanet1,PlanetNameplanet2,Timetime)
Calculates the bsmallest angular distanceb between two planets. The method 1. gets the Nirayana longitude of both planets 2. computes the absolute longitudinal difference 3. reduces the result to the smaller arc 4. returns the final value as an cAnglec.
Parameters
| Name | Type | Description |
|---|---|---|
planet1 |
PlanetName |
The first planet. |
planet2 |
PlanetName |
The second planet. |
time |
Time |
The chart time. |
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…