2014-07-16 2 views
1

google-maps-places API를 통해 특정 업체 정보를 찾으려고하지만 결과가 없습니다. Google+ 페이지와 Google지도 항목이 있으므로 나에게 이상합니다. https://plus.google.com/115673722468988785755/aboutgoogle-maps 및 google-plus에서 찾을 수있는 google-places-api를 통해 POI를 찾을 수 없습니다.

이지도 : 이 https://www.google.de/maps/place/AMWAY+Beratung+%26+Vertrieb+Haegebarth/@53.171976,9.465828,17z/data=!3m1!4b1!4m2!3m1!1s0x47b106116fc69d69:0xe17811ab2780c71d

내 주변 검색에서지도 항목에서 매우 동일한 좌표를 사용하는 경우를 사용

의 Google+ :

의이 링크를 살펴 보자 항목 이름을 키워드 (또는 가치가있는 위치)로 입력하면 결과가 비어 있습니다. (동일한 좌표)

장소-API는 : https://maps.googleapis.com/maps/api/place/nearbysearch/json?sensor=false&radius=2000&name=amway&location=53.171976,9.465828&language=de-DE&key=YOURKEY

나는 물론 Google+의 관심 장소에 대한 DB가 다른 하나라고 상상할 수있다. 그런데 다시지도 api가지도 웹 앱에서 내가 무엇을 찾을 수 없는지 알지 못합니다.

도움을 주셔서 감사합니다. 이 같은

답변

0

시도 뭔가 :

map.places.nearbySearch({ 
    location: latLng, 
    rankBy: google.maps.places.RankBy.DISTANCE, 
    types: ['shop'], // optional 
    name: "AMWAY Beratung & Vertrieb Haegebarth" // optional 
},function(results, status){ 
    if (status == google.maps.places.PlacesServiceStatus.OK) { 

    // The thing you need should be result[0] 
    // console.log(results[0]); 
    if (results[0].name == "AMWAY Beratung & Vertrieb Haegebarth") { // optionally check the type 

     // You have your place :) 

    } 
    } 
} 

무엇 해결! Google지도 JS API v3.20 이상을 사용하면 POI에서 클릭 이벤트를 트리거하여 Place 객체를 직접 가져올 수 있다는 소문이 있습니다.

관련 문제