Google maps Stern出租车票价插件-Google Direction API给出错误信息

Google maps Stern出租车票价插件-Google Direction API给出错误信息,google-maps,google-api,Google Maps,Google Api,一个月前,我买了一个插件()。出租车计算器一直运行良好,并始终与谷歌API相关联。在过去的两天里,当我连接时,插件可能使用谷歌API,也可能不使用谷歌API,并表明API方向有错误。我打开调试模式,当它不连接时,我会出现这个错误 -----------------------------调试----------------------------- object(stdClass) #2595 (3) { ["geocoded_waypoints"]= > array(2) { [

一个月前,我买了一个插件()。出租车计算器一直运行良好,并始终与谷歌API相关联。在过去的两天里,当我连接时,插件可能使用谷歌API,也可能不使用谷歌API,并表明API方向有错误。我打开调试模式,当它不连接时,我会出现这个错误

-----------------------------调试-----------------------------

object(stdClass) #2595 (3) { ["geocoded_waypoints"]= > array(2) {
    [0] => object(stdClass) #2581 (3) { ["geocoder_status"]= > string(2)
    "OK" ["place_id"] => string(27)
    "ChIJKSshOsWinkcRoOeL161IHgQ" ["types"] => array(2) {
        [0] => string(8)
        "locality" [1] => string(9)
        "political"
    }
}[1] => object(stdClass) #2596 (3) { ["geocoder_status"]= > string(2)
"OK" ["place_id"] => string(27)
"ChIJR9PV36Zuv4cRuh8PH2dhM6A" ["types"] => array(1) {
    [0] => string(7)
    "premise"
}
}
}["routes"] => array(0) {}["status"] => string(12)
"ZERO_RESULTS"
}
https: //maps.googleapis.com/maps/api/directions/json?origin=A&destination=B&key=AIzaSyAOW6tedtoxgX2VN0Qu256rriLHBJW5Vtk
-----------------------------调试-----------------------------

object(stdClass) #2595 (3) { ["geocoded_waypoints"]= > array(2) {
    [0] => object(stdClass) #2581 (3) { ["geocoder_status"]= > string(2)
    "OK" ["place_id"] => string(27)
    "ChIJKSshOsWinkcRoOeL161IHgQ" ["types"] => array(2) {
        [0] => string(8)
        "locality" [1] => string(9)
        "political"
    }
}[1] => object(stdClass) #2596 (3) { ["geocoder_status"]= > string(2)
"OK" ["place_id"] => string(27)
"ChIJR9PV36Zuv4cRuh8PH2dhM6A" ["types"] => array(1) {
    [0] => string(7)
    "premise"
}
}
}["routes"] => array(0) {}["status"] => string(12)
"ZERO_RESULTS"
}
https: //maps.googleapis.com/maps/api/directions/json?origin=A&destination=B&key=AIzaSyAOW6tedtoxgX2VN0Qu256rriLHBJW5Vtk
此插件的发布者不再支持此插件,并且在其演示页面上似乎存在相同的问题:

  • 找到控制器/stern\u taxi\u fare\u functions.php
  • 转到第881行,将“origin=A”替换为“origin=Los Angeles”
  • 转到第882行,将“目的地=B”替换为“目的地=拉斯维加斯”

  • 这将确定斯特恩出租车的票价,并允许预订,尽情享受。

    梅勒妮。果然,在将城市添加到上述区域后,表单立即显示出来。我建议自动完成地址,以同时启用:

    googleplacesapiweb服务