Google 路线 API - "Invalid request. Missing the 'departure_time' parameter.",

Google Directions API - "Invalid request. Missing the 'departure_time' parameter.",

我是 运行 下面的 Google 地图路线 API 请求:

https://maps.googleapis.com/maps/api/directions/json?origin=53.8495996301,-1.46446203532&destination=53.9236806771,-1.38606898017&waypoints=via:53.8662581183,-1.44997238789%7Cvia:53.8840009077,-1.44013139071%7Cvia:53.8998229922,-1.42836848226%7Cvia:53.9095909181,-1.40235219041&DEPARTURE_TIME=1559541600&key=APIKEY

这工作正常并得到我的行程时间结果,但是,当我添加 traffic_model 参数以获得悲观的行程时间时,如下所示:

https://maps.googleapis.com/maps/api/directions/json?origin=53.8495996301,-1.46446203532&destination=53.9236806771,-1.38606898017&waypoints=via:53.8662581183,-1.44997238789%7Cvia:53.8840009077,-1.44013139071%7Cvia:53.8998229922,-1.42836848226%7Cvia:53.9095909181,-1.40235219041&DEPARTURE_TIME=1559541600&traffic_model=pessimistic&key=APIKEY

我收到以下错误:

"Invalid request. Missing the 'departure_time' parameter."

我已尝试将此参数放置在多个位置,但其中 none 似乎有效并且都出现与上述相同的错误。

如有任何帮助,我们将不胜感激。

departure_time 参数应为小写:

https://maps.googleapis.com/maps/api/directions/json?origin=53.8495996301,-1.46446203532&destination=53.9236806771,-1.38606898017&waypoints=via:53.8662581183,-1.44997238789%7Cvia:53.8840009077,-1.44013139071%7Cvia:53.8998229922,-1.42836848226%7Cvia:53.9095909181,-1.40235219041&departure_time=1559541600&traffic_model=pessimistic&key=YOUR_API_KEY