realTime response field -1 for route in UK

4 posts / 0 new
Last post
mike_m
realTime response field -1 for route in UK

Hello,

We were trying to get a route/directions for a route in the UK.  In our call, we used:

https://www.mapquestapi.com/directions/v2/route?key=<our_key>&from=Oakth...

The  (truncated) JSON response was 

{  
   "route":{  
      "hasTollRoad":false,
      "computedWaypoints":[  

      ],
      "fuelUsed":2.92,
      "hasUnpaved":false,
      "hasHighway":true,
      "realTime":-1,
      "boundingBox":{  
         "ul":{  
            "lng":-1.27064,
            "lat":51.788055
         },
         "lr":{  
            "lng":-0.086365,
            "lat":51.482151
         }
      },
      "distance":61.271,
      "time":4499,
      "locationSequence":[  
         0,
         1
      ],

...

 

Notice that the realTime value is -1.  Is this the expected result if realTime routing is not available?  (not documented in the API page as far as I can tell)

Is realTime not supported in the UK?  If so, what other regions is realTime routing not supported?

 

Thanks,

 

Mike

 


MQBrianCoakley
Real time is supported in
Real time is supported in several North American markets, but not anywhere in Europe yet. The traffic markets request will list all of the current markets where traffic data is available.

mike_m
Thanks for the quick response

Thanks for the quick response.

Can you please confirm whether -1 will always be returned in the realTime field if traffic is not available in that market?


MQBrianCoakley
The realTime should be -1,
The realTime should be -1, equal to time, or different from time depending on the location and current availability of data. But where there is no traffic data the response could be -1 or the same value as time.