From 19228bb765f078e6c15d289a4b4b4a62c1c149c9 Mon Sep 17 00:00:00 2001 From: BK01 Date: Wed, 14 Aug 2024 08:32:01 -0700 Subject: [PATCH 01/20] Update betweenPairs.html Removed references to decommissioned geocoder. --- ols-demo/betweenPairs.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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/"; From 64f2ed95f0e255a93e61c0de729c6819c86f6c62 Mon Sep 17 00:00:00 2001 From: BK01 Date: Wed, 14 Aug 2024 08:37:11 -0700 Subject: [PATCH 02/20] Update index.html Uncommented the exactSpelling checkbox for testing. --- ols-demo/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index af60307..d26b721 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -437,9 +437,9 @@ - +

Examples:

From de37c3cd5169ad0db4894872614fe21df234594b Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 11:40:58 -0700 Subject: [PATCH 03/20] Update index.html --- ols-demo/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index d26b721..7500e7b 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -438,7 +438,7 @@
- Exact Spelling
+ Exact Spelling (activate by adding &gc=tst to app url)
@@ -563,6 +563,10 @@

Examples:

Simplify Directions   Threshold (m):
+
+ Snap Distance   + (m): +
Truck Mode
From 8aec3ef4e773a861074fd02e01e158fe6eb8eb95 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 11:42:59 -0700 Subject: [PATCH 04/20] Update index.html --- ols-demo/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 7500e7b..9a9a5c3 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -564,8 +564,7 @@

Examples:

Threshold (m):
- Snap Distance   - (m): + Snap Distance (m):
Truck Mode
From 538269b98c7d2de9c8629d6610373b069bc0ca1a Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 11:48:53 -0700 Subject: [PATCH 05/20] Update index.html --- ols-demo/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ols-demo/index.html b/ols-demo/index.html index 9a9a5c3..a29b60f 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -2060,6 +2060,9 @@

Examples:

if(!isNaN( $('#simplifyThreshold').val()) ) { params['simplifyThreshold'] = $('#simplifyThreshold').val(); } + if(!isNaN( $('#snapDistance').val()) ) { + params['snapDistance'] = $('#snapDistance').val(); + } var date = $('#time').timepicker('getTime', $('#date').datepicker('getDate')); params['departure'] = date2String(date); @@ -2164,6 +2167,8 @@

Examples:

setCheckbox('#simplifyDirectionsChk', params['simplifyDirections']); setTextField('#simplifyThreshold', params['simplifyThreshold']); + setTextField('#snapDistance', params['snapDistance']); + if(params['departure']) { let date = new Date(params['departure']); $('#date').datepicker('setDate', date); @@ -2956,6 +2961,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]); From 8c0a88a57bd09be1f4fde432d679c87b293ab0c7 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 11:53:28 -0700 Subject: [PATCH 06/20] Update index.html --- ols-demo/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/ols-demo/index.html b/ols-demo/index.html index a29b60f..2cd8e1b 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -564,6 +564,7 @@

Examples:

Threshold (m):
+ Snap Distance (m):
From 392297a6e3770c47ab8aa2a881cc16b21617a4fa Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 11:55:26 -0700 Subject: [PATCH 07/20] Update index.html --- ols-demo/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/ols-demo/index.html b/ols-demo/index.html index 2cd8e1b..7d4b775 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -567,6 +567,7 @@

Examples:

Snap Distance (m):
+
Truck Mode
From d7aefb9ee62f42e84f9de52b96c6a515e23f9c36 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 12:01:57 -0700 Subject: [PATCH 08/20] Update index.html --- ols-demo/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ols-demo/index.html b/ols-demo/index.html index 7d4b775..5b6b6da 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -2062,6 +2062,10 @@

Examples:

if(!isNaN( $('#simplifyThreshold').val()) ) { params['simplifyThreshold'] = $('#simplifyThreshold').val(); } + + if($('#snapDistanceChk').is(':checked')) { + params['snapDistance'] = "true"; + } if(!isNaN( $('#snapDistance').val()) ) { params['snapDistance'] = $('#snapDistance').val(); } @@ -2169,6 +2173,7 @@

Examples:

setCheckbox('#simplifyDirectionsChk', params['simplifyDirections']); setTextField('#simplifyThreshold', params['simplifyThreshold']); + setCheckbox('#snapDistanceChk', params['snapDistance']); setTextField('#snapDistance', params['snapDistance']); if(params['departure']) { From 522e8c13777ae8cf1e64616a05e222ff6c595e05 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 13:13:02 -0700 Subject: [PATCH 09/20] Update index.html --- ols-demo/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 5b6b6da..fbbe062 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -565,9 +565,8 @@

Examples:

- Snap Distance (m): -
-
+ Snap Distance (m):
+
Truck Mode
From 1a476adaa27fd3d94b200cdc04f9b84df3a2af2e Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 13:18:48 -0700 Subject: [PATCH 10/20] Update index.html --- ols-demo/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index fbbe062..588f0f7 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -438,7 +438,7 @@
- Exact Spelling (activate by adding &gc=tst to app url)
+ Exact Spelling (append '&gc=tst' to app url)
From d10958f008ac3b573fce85f34a6e87279fe1aa30 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 13:22:47 -0700 Subject: [PATCH 11/20] Update index.html --- ols-demo/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 588f0f7..d893056 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -438,7 +438,8 @@
- Exact Spelling (append '&gc=tst' to app url)
+ Exact Spelling
+
(*For demo purposes only. Enable by appending '&gc=tst' to this web applications URL)
From 7b4023e677e0352c2c4f2f49c09d4414d3d72b27 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 13:23:11 -0700 Subject: [PATCH 12/20] Update index.html --- ols-demo/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index d893056..745f88b 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -439,7 +439,7 @@
Exact Spelling
-
(*For demo purposes only. Enable by appending '&gc=tst' to this web applications URL)
+
(*For demo purposes only. Enable by appending '&gc=tst' to this web applications URL)

From 19de22017f4fe127f2dc2a93f7ea9eca863522bd Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 13:26:55 -0700 Subject: [PATCH 13/20] Update index.html --- ols-demo/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 745f88b..dc7e0ca 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -439,7 +439,7 @@
Exact Spelling
-
(*For demo purposes only. Enable by appending '&gc=tst' to this web applications URL)

+
Note: exactSpelling is only suitable for demos. Enable by appending '&gc=tst' to the URL of this web application.

From fa8131f8bac6aa67f3101474e46334cac9fdd743 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 13:56:03 -0700 Subject: [PATCH 14/20] Update index.html --- ols-demo/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index dc7e0ca..95ff391 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -566,10 +566,10 @@

Examples:

- Snap Distance (m):
+ Snap Distance (m):
- Truck Mode
+
Truck Mode
Follow Truck Route; Multiplier:
From 2ebf4c457fee706272b12ab419cab35eb3b56842 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 14:09:24 -0700 Subject: [PATCH 15/20] Update index.html --- ols-demo/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 95ff391..0821eae 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -567,9 +567,9 @@

Examples:

Snap Distance (m): -
+


-
Truck Mode
+ Truck Mode
Follow Truck Route; Multiplier:
From 7a8e372386a34e62685123ebb867d3012fc1de91 Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 14:15:22 -0700 Subject: [PATCH 16/20] Update index.html --- ols-demo/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 0821eae..006797a 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -567,8 +567,8 @@

Examples:

Snap Distance (m): -


-
+
+
Truck Mode
Follow Truck Route; From 8c16b97d15a34a7d8bdf5a1bfda5690cf2f85e6f Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 14:17:19 -0700 Subject: [PATCH 17/20] Update index.html --- ols-demo/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 006797a..64a777a 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -564,11 +564,11 @@

Examples:

Simplify Directions   Threshold (m):
-
+
Snap Distance (m):
-
+
Truck Mode
Follow Truck Route; From dbbbccb27518a8a2af1990692aeba1cc9e05fc3d Mon Sep 17 00:00:00 2001 From: BK01 Date: Tue, 17 Sep 2024 14:21:42 -0700 Subject: [PATCH 18/20] Update index.html --- ols-demo/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 64a777a..186d580 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -439,7 +439,7 @@
Exact Spelling
-
Note: exactSpelling is only suitable for demos. Enable by appending '&gc=tst' to the URL of this web application.

+
Note: exactSpelling is only suitable for demos. Enable by appending '&gc=tst' to the URL of this web application.

From 9343523b516f1b4d41e17b40e50a493101627bd5 Mon Sep 17 00:00:00 2001 From: BK01 Date: Wed, 18 Sep 2024 14:07:37 -0700 Subject: [PATCH 19/20] Update index.html --- ols-demo/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 413f912..7cba359 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -439,10 +439,11 @@
Exact Spelling
-
Note: exactSpelling is only suitable for demos. Enable by appending '&gc=tst' to the URL of this web application.

+
+
Note: exactSpelling is only suitable for demos. Enable by appending '&gc=tst' to the URL of this web application.

Examples:

  • 1175 Douglas St Victoria BC
  • From b43f10f91a93bfd158d97875478e8a8a13c2425d Mon Sep 17 00:00:00 2001 From: BK01 Date: Wed, 18 Sep 2024 14:08:22 -0700 Subject: [PATCH 20/20] Update index.html --- ols-demo/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 7cba359..7515d42 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -1794,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