문제 해결
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
다음은 일반적인 문제를 해결하는 방법에 관한 도움말입니다.
정확도 반경이 매우 큰 이유는 무엇인가요?
위치 정보 응답의 정확도 필드에 매우 높은 값이 표시되면 서비스가 Wi-Fi 포인트나 휴대폰 기지국이 아닌 요청 IP를 기반으로 위치를 파악하고 있을 수 있습니다. 이러한 종류의 응답은 서비스에서 기지국이나 액세스 포인트를 인식하지 못하는 경우에 발생할 수 있습니다.
서비스에서 액세스 포인트를 지리적 위치로 파악할 수 없음을 확인하려면 요청에서 considerIp
을 false로 설정하세요. 응답이 404인 경우 wifiAccessPoints 및 cellTowers 객체의 위치를 확인할 수 없음을 확인한 것입니다.
응답 오류를 해결하려면 어떻게 해야 하나요?
요청에서 오류가 발생하면 시스템은 표준 형식 오류 응답 본문을 반환하고 HTTP 상태 코드를 오류 상태로 설정합니다.
오류 응답에는 다음 키가 있는 단일 오류 객체가 포함된 객체가 포함됩니다.
code
: 응답의 HTTP 상태와 동일합니다.
message
: 오류에 대한 간단한 설명입니다.
errors
: 발생한 오류 목록입니다. 각 오류에는 오류 유형 (이유)의 식별자와 간단한 설명 (메시지)이 포함됩니다.
예를 들어 잘못된 JSON을 전송하면 다음 오류가 반환됩니다.
{
"error": {
"errors": [
{
"domain": "global",
"reason": "parseError",
"message": "Parse Error",
}
],
"code": 400,
"message": "Parse Error"
}
}
추가 테스트를 위해 다음 SDK와 API를 사용하여 기기에서 정보를 수집할 수 있습니다.
오류 설명
다음은 발생할 수 있는 오류와 설명입니다.
이유 |
도메인 |
HTTP 상태 코드 |
설명 |
dailyLimitExceeded |
usageLimits |
403 |
일일 한도를 초과했습니다. |
keyInvalid |
usageLimits |
400 |
API 키가 Geolocation API에 유효하지 않습니다. 전체 키를 포함해야 하며, API를 구매했거나 결제를 사용 설정하고 API를 활성화하여 할당량을 무료로 획득해야 합니다. |
userRateLimitExceeded |
usageLimits |
403 |
Google Cloud 콘솔에서 구성한 요청 한도를 초과했습니다.
이 한도는 일반적으로 일일 요청 수, 100초당 요청 수, 사용자별 100초당 요청 수로 설정됩니다. 단일 사용자 또는 소규모 사용자 그룹이 일일 할당량을 소진하지 못하도록 제한을 구성하면서도 모든 사용자가 적절하게 액세스할 수 있도록 해야 합니다.
이러한 한도를 구성하려면 API 사용량 상한 설정을 참고하세요.
|
notFound |
geolocation |
404 |
요청이 올바르지만 결과가 반환되지 않았습니다. |
parseError |
global |
400 |
요청 본문이 올바른 JSON이 아닙니다. 각 필드에 관한 자세한 내용은 요청 본문 섹션을 참고하세요. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-31(UTC)
[null,null,["최종 업데이트: 2025-08-31(UTC)"],[[["\u003cp\u003eThe Geolocation API uses IP addresses, WiFi points, and cell towers to determine location, with large accuracy radius often indicating IP-based geolocation.\u003c/p\u003e\n"],["\u003cp\u003eTroubleshooting involves examining the error response, which includes an error code, message, and a list of errors with reasons and descriptions.\u003c/p\u003e\n"],["\u003cp\u003eYou can gather additional testing information from devices using the Android Location APIs, Places SDK for Android and iOS.\u003c/p\u003e\n"],["\u003cp\u003ePossible errors include exceeding daily or user request limits, using an invalid API key, and requests returning no results despite being valid.\u003c/p\u003e\n"]]],["If a large accuracy radius is shown, the service may be using the request IP instead of cell towers or WiFi. Test by setting `considerIp` to false; a 404 response confirms no access points were found. Error responses include a `code` (HTTP status), `message`, and an `errors` list with `reason` and `message`. Common errors include `dailyLimitExceeded` (403), `keyInvalid` (400), `userRateLimitExceeded` (403), `notFound` (404), and `parseError` (400) due to invalid JSON.\n"],null,["# Troubleshoot\n\nHere are some tips on troubleshooting common issues.\n\nWhy is the accuracy radius very large?\n--------------------------------------\n\nIf your Geolocation response shows a very high value in the accuracy field, the\nservice may be geolocating based on the request IP, instead of WiFi points or\ncell towers. These kinds of responses can happen if the service does not\nrecognize any cell towers or access points.\n\nTo confirm that the service could not geolocate your access points, set\n`considerIp` to false in your request. If the response is a 404, you've\nconfirmed that your wifiAccessPoints and cellTowers objects could not be geolocated.\n\nHow do I troubleshoot a response error?\n---------------------------------------\n\nIf your request generates an error, the system returns a standard format error\nresponse body and sets the HTTP status code to an error status.\n\nThe error response contains an object with a single error object with the\nfollowing keys:\n\n- `code`: This is the same as the HTTP status of the response.\n- `message`: A short description of the error.\n- `errors`: A list of errors that occurred. Each error contains an identifier for the type of error (the reason) and a short description (the message).\n\nFor example, sending invalid JSON returns the following error: \n\n {\n \"error\": {\n \"errors\": [\n {\n \"domain\": \"global\",\n \"reason\": \"parseError\",\n \"message\": \"Parse Error\",\n }\n ],\n \"code\": 400,\n \"message\": \"Parse Error\"\n }\n }\n\nGather testing information from devices\n---------------------------------------\n\nFor additional testing, you can gather information from your device using the\nfollowing SDKs and APIs:\n\n- **Android devices** : Go to [Places SDK for Android](/maps/documentation/places/android-sdk/current-place), and [Android\n Location APIs](https://developer.android.com/training/location/index.html).\n\n- **iOS devices** : Go to [Places SDK for iOS](/maps/documentation/places/ios-sdk/current-place).\n\nError descriptions\n------------------\n\nHere are the possible errors you might encounter with descriptions.\n\n| Reason | Domain | HTTP Status Code | Description |\n|-------------------------|---------------|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dailyLimitExceeded` | `usageLimits` | 403 | You have exceeded your [daily limit](/maps/documentation/geolocation/usage-and-billing#other-usage-limits). |\n| `keyInvalid` | `usageLimits` | 400 | Your API key is not valid for the Geolocation API. Be sure to include the entire key, and that you've either purchased the API or have [enabled billing and activated the API](/maps/documentation/geolocation/get-api-key) to obtain the quota at no charge. |\n| `userRateLimitExceeded` | `usageLimits` | 403 | You have exceeded the request limit that you configured in the Google Cloud console. This limit is typically set as requests per day, requests per 100 seconds, and requests per 100 seconds per user. You should configure your limit to prevent a single or small group of users from exhausting your daily quota, while still allowing reasonable access to all users. See [Capping API Usage](https://cloud.google.com/apis/docs/capping-api-usage) to configure these limits. |\n| `notFound` | `geolocation` | 404 | The request was valid, but no results were returned. |\n| `parseError` | `global` | 400 | The request body is not valid JSON. Refer to the [Request Body](/maps/documentation/geolocation/requests-geolocation#body) section for details on each field. |"]]