Controller Coordinates
Introduction
As one controller may be listening on multiple transceivers, a "center point" for a given controller becomes ambiguous. To solve this problem, we recommend using the center of the transceivers as the location of the controller.
The Data API's transceiver data returns each transceiver's longitude and latitude for a given callsign, allowing you to calculate this.
Implementation
The AFV Map calculates the center of the transceivers and uses the result as the location for the controller. Its implementation can be found here.
We've also provided StackOverflow solutions below for calculating the center of a set of coordinates in various languages: