Hi there, I was trying to add restrictions to my routes but for some reason, it is not optimizing the way it should be. My code looks something like this.
 $location = array(               
                    ‘name’ => $name,
                    ‘lat’ => floatval($lat),
                    ‘lng’ => floatval($lng),
                    ‘servicetime’ => 30,
                    ‘restrictions’ => array(
                    ready => 60
                    due => 240

If anyone can help me out, that would be great!

The restrictions may not be formatted correctly. First, the ready and due fieldnames are not in ‘quotes’. Second, there is no comma to seperate the two fields in the array.

If this does not solve your problem, and you’d like us to check in more detail, we would need the full request, the result you expect and the result that is returned.