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 @@

BetweenPairs Demo

// API URLs var apiKey = "11dd756f680c47b5aef5093d95543738"; - var gcApi = "https://apps.gov.bc.ca/pub/geocoder/"; + var gcApi = "https://geocoder.api.gov.bc.ca/"; var routeApi = "https://router.api.gov.bc.ca/"; var routeMethod = 'POST'; if(queryParams['env'] == 'tst') { - gcApi = "https://test.apps.gov.bc.ca/pub/geocoder/"; + gcApi = "https://geocodertst.api.gov.bc.ca/"; routeApi = "https://routertst.api.gov.bc.ca/"; } else if(queryParams['env'] == 'dlv') { - gcApi = "https://delivery.apps.gov.bc.ca/pub/geocoder/"; + gcApi = "https://geocoderdlv.api.gov.bc.ca/"; routeApi = "https://routerdlv.api.gov.bc.ca/"; } else if(queryParams['env'] == 'rri') { gcApi = "https://ssl.refractions.net/ols/pub/geocoder/"; diff --git a/ols-demo/index.html b/ols-demo/index.html index cf23765..7515d42 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -437,11 +437,13 @@ - + +
+
Note: exactSpelling is only suitable for demos. Enable by appending '&gc=tst' to the URL of this web application.

Examples:

+
+ + Snap Distance (m): +
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]);