diff --git a/ols-demo/betweenPairs.html b/ols-demo/betweenPairs.html
index 852b948..ad59c3d 100644
--- a/ols-demo/betweenPairs.html
+++ b/ols-demo/betweenPairs.html
@@ -291,14 +291,14 @@
Truck Mode
@@ -1788,7 +1794,7 @@
Examples:
echo: true,
brief: true,
autoComplete: true,
- //exactSpelling: $('#exactSpellingChk').is(':checked'),
+ exactSpelling: $('#exactSpellingChk').is(':checked'),
matchPrecisionNot: matchPrecisionNot,
locationDescriptor: defaultLocationDescriptor,
addressString: request.term
@@ -2049,6 +2055,13 @@ Examples:
if(!isNaN( $('#simplifyThreshold').val()) ) {
params['simplifyThreshold'] = $('#simplifyThreshold').val();
}
+
+ if($('#snapDistanceChk').is(':checked')) {
+ params['snapDistance'] = "true";
+ }
+ if(!isNaN( $('#snapDistance').val()) ) {
+ params['snapDistance'] = $('#snapDistance').val();
+ }
var date = $('#time').timepicker('getTime', $('#date').datepicker('getDate'));
params['departure'] = date2String(date);
@@ -2153,6 +2166,9 @@ Examples:
setCheckbox('#simplifyDirectionsChk', params['simplifyDirections']);
setTextField('#simplifyThreshold', params['simplifyThreshold']);
+ setCheckbox('#snapDistanceChk', params['snapDistance']);
+ setTextField('#snapDistance', params['snapDistance']);
+
if(params['departure']) {
let date = new Date(params['departure']);
$('#date').datepicker('setDate', date);
@@ -2953,6 +2969,9 @@ Examples:
if(data.simplifyThreshold) {
$('#simplifyThreshold').val(data.simplifyThreshold);
}
+ if(data.snapDistance) {
+ $('#snapDistance').val(data.snapDistance);
+ }
if(data.xingCost) {
var xingCosts = data.xingCost.split(",");
$('#yieldCost').val(xingCosts[0]);