I’m polling all corporation structures from ESI with corporations/<corpid>/structures.
From this query result I take the structure_id. If it’s a drilling plattform I want to get the moon it belongs to. But I was not able to get a moon name or better his moon id a structure belongs to from ESI.
The best I get are 3D coordinates in the solar system using universe/structures/<structure_id>/.
Of course I may fetch all moons of the system and apply a standard 3D distance formula to get the moon with the smallest distances, but that’s overcomplicated.