2017-03-16 21 views
-1

一個月前,我買了一個插件(Stern Taxi Fare)。出租車計算器一直很好地運行,並且始終與Google API相關聯。在過去兩天中,當我連接時,插件可能會或可能不會使用Google API,並指示API方向中的錯誤。我打開調試模式,當它沒有連接時出現這個錯誤。斯特恩出租車票價插件 - 谷歌方向API給出錯誤

----------------------------- DEBUG ---------------- -------------

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 

----------------------------- DEBUG -----------------------------

此插件的發佈者不再支持它,似乎也有同樣的問題他們的演示頁: http://stern-taxi-fare.sternwebagency.com/fr/home/

回答

0
  1. 找到控制器/ stern_taxi_fare_functions.php
  2. 轉到行881和替換「起源= A」與「起源=洛杉磯」
  3. 轉到行882,並與「目的地=拉斯維加斯」

這將取代「目的地= B」修正嚴格的出租車費用並啓用預訂,享受。

0

梅拉尼。如上所述,在將城市添加到區域後,果然形式正好顯示出來。我會建議自動完成的地址還可以:

Google Places API Web Service