2 posts / 0 new
Last post

I am evaluating the Directions API to retrieve distance, drive time and drive time with traffic.  I am doing a POST to the Routes endpoing and passing the following:

{ "locations" : [address1, address2], "useTraffic":true}

The results come back providing me with the distance and drivetime but the UseTraffic flag in the response is false.

What am I missing?

Create an options object to
Create an options object to use for useTraffic and other options. The json might look like this: { "locations" : [address1, address2], options:{"useTraffic":true}}