이전에 요청했는지 확신 할 수 없지만 Google Places API의 일부 데이터를 사용하는 간단한 재생 응용 프로그램을 사용해야합니다.Google Places API에 대한 PlayFramework 요청
내가 발견 한 그 같은 요청 :
https://maps.googleapis.com/maps/api/place/search/json?location=46.5882,-95.4075&radius=50000&types=lodging&sensor=false&key=[your_api_key]
완벽하게 브라우저에서 작동하지만 플레이에서! (그것은 REQUEST_DENIED
을 반환) :
parameters.put("location", cityFound.latitude+","+cityFound.longitude);
parameters.put("radius", "50000");
parameters.put("types", "lodging");
parameters.put("sensor", "true");
parameters.put("key", "GOOGLE_PLACES_KEY");
WSRequest wsRequest = WS.url("https://maps.googleapis.com/maps/api/place/search/json").setParameters(parameters);
을 나는 브라우저에서, 내가 시도하는 경우는 REQUEST_DENIED
수 있습니다 위의 https
대신 http
요청을 할 수 있다는 것을 발견 약간의 두통 후.
Play에서 나는 이것을 할 수 없다고 의심합니다. https
요청은 SSL 인증서가 없어도됩니까?
또한, 추한 바로 이런 일에 대한 SSL 인증서 $ 수백 지불 (또는 당신이 플레이에 구현하기 쉬운 어떤 무료 솔루션을 알아?)되지
내가 그렇게 말했어;) – magomi