//gps 좌표로 Location 객체 생성
double lat = 37.520261;
double lon = 126.913585;
Location endLocation = new Location("gps");
endLocation.setLatitude(lat);
endLocation.setLongitude(lon);        

복사했습니다!