How work optimize route on delivery trip

hi, i try to use estimate arrival times and optimeze route but unknow how record the gps data, the buttons try use API (of course is activated the api ) but unkonw how show the routes or time/distance.

Can tellme if exist this functionality or just “not active functionality”?

image

NOTE: The Json generate call api and send this … how edit/save/modify “lat/lng” fields?
image