카카오 RESTAPI

문의 시, 사용하시는 개발환경과 디벨로퍼스 앱ID를 알려주세요.


안드로이드 개발하고있는 초보개발자입니다. RESTAPI 테스트하는데


이화면에서는 위도와 경도를 입력해도 똑같은 값만 출력되는건가요? 원래?
안드로이드 스튜디오에서도 위도 경도 입력해도 계속 똑같은곳만 떠서… 그렇습니다. 제가 입력한 코드는
public class MainActivity3 extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main3);

    // API 호출
    ApiInterface apiInterface = ApiClient.getApiClient().create(ApiInterface.class);
    Call<CategoryResult> call = apiInterface.getSearchCategory(
            getString(R.string.restapi_key),
            "HP8",
            "위도",
            "경도",
            5000

    );

    call.enqueue(new Callback<CategoryResult>() {
        @Override
        public void onResponse(@NotNull Call<CategoryResult> call, @NotNull Response<CategoryResult> response) {
            if (response.isSuccessful()) {
                CategoryResult result = response.body();
                if (result != null) {
                    // 응답 데이터 처리
                    Log.e("onResponse", "Success");

                    // 병원 정보 출력
                    List<Document> documents = result.getDocuments();
                    if (documents != null && !documents.isEmpty()) {
                        for (Document document : documents) {
                            Log.e("HospitalInfo", "Place Name: " + document.getPlaceName());
                            Log.e("HospitalInfo", "Category Name: " + document.getCategoryName());
                            Log.e("HospitalInfo", "Address: " + document.getAddressName());
                            Log.e("HospitalInfo", "Phone: " + document.getPhone());
                            Log.e("HospitalInfo", "Distance: " + document.getDistance());
                            Log.e("HospitalInfo", "Place URL: " + document.getPlaceUrl());
                            Log.e("HospitalInfo", "road_address_name" + document.getRoadAddressName());
                            Log.e("HospitalInfo","x"+document.getX());
                            Log.e("HospitalInfo","x"+document.getY());
                        }
                    } else {
                        Log.e("HospitalInfo", "No hospital information found.");
                    }
                }
            } else {
                Log.e("onResponse", "Error: " + response.message());
            }
        }

        @Override
        public void onFailure(@NotNull Call<CategoryResult> call, @NotNull Throwable t) {
            Log.e("onFailure", "Error: " + t.getMessage());
            t.printStackTrace(); // 스택 트레이스 출력을 추가
        }
    });
}

} 이거입니다… 위도와 경도를 입력해도 그 위치주변이아닌 똑같은 서울쪽이 뜹니다… 원인을 모르겠습니다… 도와주세요

안녕하세요.

확인을 위해 앱 ID 부탁드립니다.


앱ID
https://developers.kakao.com/ 의 내 애플리케이션>앱 설정>요약 정보 : 기본정보에 있는 앱 ID
숫자로된 ID 입니다

ex) 123456

995310 입니다. 테스트 아이디라 이렇게 뜨는건지…

위도 경도 반대로 전달하신 것으로 보이는데요 다시 해보시겠어요?

감사합니다 해결되었습니다.