什么是此错误的解决方案: - 此API的请求必须通过SSL

jay*_*dev 16 ssl google-places-api

我正在使用Google Place API获取两个城市之间的距离,但是当我通过http://maps.googleapis.com/maps/api/distancematrix/json?origins=dehli&destinations=pune&mode=bicycling&language=en-EN&sensor调用该服务时= true&key = AppKey服务提供此响应:

{

    "destination_addresses": [ ],
    "error_message": "Requests to this API must be over SSL.",
    "origin_addresses": [ ],
    "rows": [ ],
    "status": "REQUEST_DENIED"
}
Run Code Online (Sandbox Code Playgroud)

这个问题的解决方案是什么?