Say you have `n`

GPS coordinates how could you work out the central GPS point between them?

# Triangulating GPS coordinates

geometrygpsmath

###### Related Question

- Java – Fastest way to determine if an integer’s square root is an integer
- Calculate distance between 2 GPS coordinates
- Equation for testing if a point is inside a circle
- Android – How to get the current GPS location programmatically in Android
- Ruby – How to sum array of numbers in Ruby
- Android – Best practice to calculate the average speed from GPS coordinates
- Easy interview question got harder: given numbers 1..100, find the missing number(s) given exactly k are missing
- Understanding “randomness”

## Best Solution

In case it helps anyone now or in the future, here's an algorithm that's valid even for points near the poles (if it's valid at all, i.e. if I haven't made a silly math mistake ;-):

Convert the latitude/longitude coordinates to 3D Cartesian coordinates:

Compute the average of x, the average of y, and the average of z:

Convert that direction back to latitude and longitude: