Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
leger
rv
Commits
95673dbb
Commit
95673dbb
authored
Oct 24, 2014
by
Jean-Benoist Leger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forbid distance > 100 km
parent
7acf8bc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
herve/js/herve.js
herve/js/herve.js
+5
-0
route/main.cc
route/main.cc
+6
-0
No files found.
herve/js/herve.js
View file @
95673dbb
...
...
@@ -443,6 +443,11 @@ function updateRoutingStatus()
window
.
clearInterval
(
herve
.
displaytimer
);
drawResults
();
}
if
(
herve
.
State
==
18
)
{
txt
=
'
<p>Erreur: Distance trop longue</p>
'
;
}
$
(
'
#status
'
).
html
(
txt
);
}
...
...
route/main.cc
View file @
95673dbb
...
...
@@ -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
previous
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment