Method: findNearbyPlaces
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
HTTP 요청
POST https://locationselection.googleapis.com/v1beta:findNearbyPlaces
URL은 gRPC 트랜스코딩 구문을 사용합니다.
요청 본문
요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.
필드 |
localizationPreferences |
object (LocalizationPreferences )
필수 항목입니다. 응답에서 텍스트를 현지화하는 데 사용되는 환경설정입니다(예: 이름, 주소).
|
searchLocation |
object (LatLng )
필수 항목입니다. 장소를 찾을 위치입니다.
|
maxResults |
integer
필수 항목입니다. 반환할 최대 결과 수입니다. 0보다 커야 합니다.
|
wifiAccessPoints[] |
object (WiFiAccessPoint )
요청 위치 주변의 Wi-Fi 액세스 포인트 더 높은 품질의 검색결과를 제공하는 데 사용됩니다.
|
응답 본문
성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.
지정된 위치 응답 메시지의 주변 장소를 찾습니다.
JSON 표현 |
{
"placeResults": [
{
object (PlaceResult )
}
]
} |
필드 |
placeResults[] |
object (PlaceResult )
발견된 장소의 순서 목록입니다. 요청 위치 주변에 장소가 없으면 비어 있을 수 있습니다. 순서는 가능성과 거리의 조합을 기반으로 합니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-05(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-11-05(UTC)"],[[["The Location Selection API's Find Nearby Places function allows you to identify places near a specified location using a POST request."],["The request body requires location preferences, search location, maximum results, and optionally, WiFi access points for enhanced accuracy."],["The response provides an ordered list of places based on likelihood and distance, which may be empty if no suitable places are found."],["gRPC Transcoding syntax is used for the HTTP request URL."]]],["The core function is to find nearby places via a `POST` request to `https://locationselection.googleapis.com/v1beta:findNearbyPlaces`. The request body requires `localizationPreferences`, `searchLocation`, and `maxResults` (an integer). Optionally, `wifiAccessPoints` can be included. The response returns a `placeResults` array, containing a list of found places, ordered by likelihood and distance. The list may be empty if no locations were found.\n"]]