不使用HTTPS的Google Places API


Google Places API without HTTPS

我在向Google Places API发送请求时遇到问题,因为我的机器位于具有身份验证的代理之后。我过去通过在从PHP发送http请求时使用上下文成功地解决了这一问题。我很难从谷歌的地方使用HTTPS,最简单的方法就是使用HTTP。

我找不到HTTP API的链接。请求的基本URL是:https://maps.googleapis.com/maps/api/place/search/output?parameters

(来源:http://code.google.com/apis/maps/documentation/places/)。

我正在寻找一种不使用https连接到此API的方法。只是使用http://maps.googleapis.com/maps/api/place/search/output?parameters结果是404。

谢谢,David

您应该在url中写"json"或"xml",而不是"output"。

喜欢http://maps.googleapis.com/maps/api/place/search/json?..