Commit 95673dbb authored by Jean-Benoist Leger's avatar Jean-Benoist Leger

Forbid distance > 100 km

parent 7acf8bc6
...@@ -443,6 +443,11 @@ function updateRoutingStatus() ...@@ -443,6 +443,11 @@ function updateRoutingStatus()
window.clearInterval(herve.displaytimer); window.clearInterval(herve.displaytimer);
drawResults(); drawResults();
} }
if(herve.State==18)
{
txt = '<p>Erreur: Distance trop longue</p>';
}
$('#status').html(txt); $('#status').html(txt);
} }
......
...@@ -62,6 +62,12 @@ int main(int argc, char* argv[]) ...@@ -62,6 +62,12 @@ int main(int argc, char* argv[])
} }
if(d_total_dist_min>100e3)
{
D_db.write_state(18);
return(1);
}
D_db.write_state(2); // routing D_db.write_state(2); // routing
previous=0; previous=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment