From where is the distance calculated?

The distance is calculated from your activated location.