Method: findNearbyPlaces
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirli bir konumun yakınındaki yerleri bulun.
HTTP isteği
POST https://locationselection.googleapis.com/v1beta:findNearbyPlaces
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
İstek içeriği
İstek gövdesi aşağıdaki yapıya sahip verileri içerir:
Alanlar |
localizationPreferences |
object (LocalizationPreferences )
Zorunlu. Yanıttaki metinleri yerelleştirmek için kullanılan tercihler (ör. ad ve adres).
|
searchLocation |
object (LatLng )
Zorunlu. Yerlerin bulunması gereken konum.
|
maxResults |
integer
Zorunlu. Döndürülecek maksimum sonuç sayısı. 0'dan büyük olmalıdır.
|
wifiAccessPoints[] |
object (WiFiAccessPoint )
İstek konumunun çevresindeki kablosuz erişim noktaları. Daha kaliteli arama sonuçları sunmak için kullanılır.
|
Yanıt gövdesi
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
Belirli bir konum yanıtı mesajı için yakındaki yerleri bulun.
JSON gösterimi |
{
"placeResults": [
{
object (PlaceResult )
}
]
} |
Alanlar |
placeResults[] |
object (PlaceResult )
Bulunan yerlerin sıralı listesi. İstek konumunun çevresinde yer bulunamazsa boş olabilir. Sıralama, olasılık ve mesafenin bir kombinasyonuna göre yapılır.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-05 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]