Google Maps in Dispatcher Workspace showing straight line instead of route

frustysnape
Tera Contributor

Hello,

In our Dispatcher Workspace, instead of displaying the actual route the agent should travel, it is only showing a straight-line calculation. I have already set the property to use "Google Maps API" to calculate the time and route, but it still displays a straight line in Google Maps.

May I know if any additional configuration is required on the Google side to make this work?

Thanks

10 REPLIES 10

What SN release are you, yokohoma zurich? older? In the SN doc - that API is not mentioned Google Maps APIs for Field Service capabilities, and in the Google doc, it looks like its a legacy API Directions API (Legacy) overview  |  Google for Developers.   and now the legacy one has been replaced by ''route api'' - which we turned on 😞 

EDIT: ok the google api changes are not fully supported in yokohoma.


To enable using the new google API for Route Optimization. Please change the property

'work.management.travel.calculation.route_optimization.mode'

from 'DP' (out of box) to 'Greedy'.
The original mode relies on java layer of API change and it is not fully supported in Yokohama release. By switching to 'Greedy' mode, we will fully adapt the latest javascript google Route API integration instead of using the deprecated Directions API from java side.