//Returns distance from AP