Routing and Re-Routing

Hello guys, I have a problem with routing and re-routing. I often get rout in the wrong direction., also when re-routing.

GH is installed on a virtual machine.

I tried this method for python:
post_data = {
“elevation”: False,
“points”: [point_coordinate[“start”], point_coordinate[“finish”]],
“profile”: “car”,
“points_encoded”: False,
“locale”: “sr”,
“headings”: [point_coordinate[“heading”]]
}

And this for app method:
$rdata = array(
‘start’ => [$data[‘carStatus’][‘coords’][0], $data[‘carStatus’][‘coords’][1]],
‘finish’ => [$response[‘addr_lon’], $response[‘addr_lat’]],
‘short’ => true,
‘heading’ => round ($data[‘carStatus’][‘heading’])
);

Thanks!
Borislav

Do you have an example where you get the wrong direction?

Because the headings property already defines this.

1 Like

Solved!
Array was not correctly defined. Now it works like a charm.