使用内置的距离计算:Location loc; ..... float radius = 50.0; float distance = loc.distanceTo(loc2); if (distance < radius) then inside.