I am using Google Maps v3 API to calculate a route of 1 hour, I calculate route of 56 min finally when I am about to calculate route for remaining 4 min It doe开发者_如何学JAVAsn't find any route for 4 min from last calculated point in that area.
What could be a best solution to deal with this situation?
Maybe you hit the limit for way points. If I remember right, it's 8.
EDIT: If it's about the timeout, then do something like this:
/* Before questioning way points: */
$delay = 0; // ms
if {
// do stuff
}
else
{
$delay = 10000; // 10 sec.
}
/* After */
usleep( $delay );
精彩评论