How should we send an HTTP request to the routes API, not the direction API, to get more precise polylines in Flutter? It would be helpful if anyone could give me an example of sending that request to the routes API.
I tried searching in the hope of finding detailed documentation or something and an example of how to do it..but I could not. I used directions API, which was not so precise.
What I want is that the routes API accepts and HTTP post request of the from "https://routes.googleapis.com/directions/v2:computeRoutes" but I cant understand how to send it...all I am asking is to give me an example on how this should be done