Closed kofronpi closed 6 years ago
Could you provide sample CURL requests? What I see so far is that maxRoutingTime
is written wrong. But in general this should not happen.
@gerbsen oh, you are right, I messed up with the key maxRoutingTime.
The behavior is weird though because the results without routing duration are consistent request after request.
I, [2018-02-23T10:25:29.167112 #10359] INFO -- : post https://service.route360.net/westcentraleurope/v1/time?key=XXXXXXXXXXX
D, [2018-02-23T10:25:29.167196 #10359] DEBUG -- request: User-Agent: "Faraday v0.9.2"
Content-Type: "application/json"
D, [2018-02-23T10:25:29.167253 #10359] DEBUG -- request: {"sources":[{"lat":45.744603,"lng":4.868566,"id":493,"tm":{"transit":{}}},{"lat":45.746439,"lng":4.837311,"id":492,"tm":{"bike":{}}}],"targets":[{"id":158423,"lng":4.850937626291677,"lat":45.70209923753786},{"id":158419,"lng":4.802279066989881,"lat":45.756125604993585},{"id":158422,"lng":4.812897456345151,"lat":45.7306247683139},{"id":158421,"lng":4.824739469218514,"lat":45.7788725616154},{"id":158428,"lng":4.8814542164548556,"lat":45.70434417140896},{"id":158418,"lng":4.828342216087872,"lat":45.76981789250719},{"id":158420,"lng":4.837566104268735,"lat":45.73366934338188},{"id":158426,"lng":4.851726189477652,"lat":45.772982235691835},{"id":158427,"lng":4.82588465717846,"lat":45.74896950864248},{"id":158424,"lng":4.868978156414506,"lat":45.75347043122545},{"id":158425,"lng":4.869734321237862,"lat":45.7340765031768}],"max_routing_time":4800,"pathSerializer":"compact"}
I, [2018-02-23T10:25:29.623158 #10359] INFO -- Status: 200
gives me 3 results without duration, whereas:
I, [2018-02-23T10:26:23.934156 #10588] INFO -- : post https://service.route360.net/westcentraleurope/v1/time?key=XXXXXXXXXX
D, [2018-02-23T10:26:23.934242 #10588] DEBUG -- request: User-Agent: "Faraday v0.9.2"
Content-Type: "application/json"
D, [2018-02-23T10:26:23.934308 #10588] DEBUG -- request: {"sources":[{"lat":45.744603,"lng":4.868566,"id":493,"tm":{"transit":{}}},{"lat":45.746439,"lng":4.837311,"id":492,"tm":{"bike":{}}}],"targets":[{"id":158423,"lng":4.850937626291677,"lat":45.70209923753786},{"id":158419,"lng":4.802279066989881,"lat":45.756125604993585},{"id":158422,"lng":4.812897456345151,"lat":45.7306247683139},{"id":158421,"lng":4.824739469218514,"lat":45.7788725616154},{"id":158428,"lng":4.8814542164548556,"lat":45.70434417140896},{"id":158418,"lng":4.828342216087872,"lat":45.76981789250719},{"id":158420,"lng":4.837566104268735,"lat":45.73366934338188},{"id":158426,"lng":4.851726189477652,"lat":45.772982235691835},{"id":158427,"lng":4.82588465717846,"lat":45.74896950864248},{"id":158424,"lng":4.868978156414506,"lat":45.75347043122545},{"id":158425,"lng":4.869734321237862,"lat":45.7340765031768}],"maxRoutingTime":4800,"pathSerializer":"compact"}
I, [2018-02-23T10:26:24.853497 #10588] INFO -- Status: 200
gives me none :)
I'm closing this for now as I will investigate the %miss rate on a large number of results, and I'll come back to you if necessary.
Thanks !
Around 10 to 20 % of my requested travel times are missing a duration (
-1
response from the TimeService server), even when I greatly enhance themax_routing_time
( up to twice what I know is as a correct threshold to reach the POI !).Can you give me pointers to how to reduce the miss % rate to an acceptable threshold such as 3-4% ?
Is it possible to be because of the location of target POI ? (too far from a road, network, etc.)
I'm using the "/westcentraleurope/v1/time" endpoint.
Thank you.