Author Topic: Non-connected related routes - definition discussion  (Read 1981 times)

0 Members and 1 Guest are viewing this topic.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2987
  • Last Login:January 24, 2021, 03:29:14 pm
Re: Non-connected related routes - definition discussion
« Reply #15 on: July 02, 2020, 02:45:14 pm »
A stupid question -- where can I find the tmtest version of the HB (and anything else on tmtest)? I'm on the road, haven't had time to look at tmtest.

Examples:
https://tmtest.teresco.org/hb/showroute.php?u=oscar&r=qc.a440
https://tmtest.teresco.org/hb/showroute.php?u=oscar&r=qc.tchkir (@Jim, why AntChiMaz?)
https://tmtest.teresco.org/hb/showroute.php?u=oscar&r=eng.m001

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2000
  • Last Login:Yesterday at 11:50:39 pm
Re: Non-connected related routes - definition discussion
« Reply #16 on: July 02, 2020, 02:54:09 pm »
(@Jim, why AntChiMaz?)

Looks like it has "tCh" in the middle!

Offline si404

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1409
  • Last Login:Today at 05:17:51 am
Re: Non-connected related routes - definition discussion
« Reply #17 on: July 02, 2020, 02:54:41 pm »
@Jim, why AntChiMaz?
Not Jim, but I believe my bolding it has explained why.

This stopgap is useful and good - it gives back the related routes function in some form so you can find the route you actually want if you went onto the wrong one, but not the problematic form of mapview.

Offline oscar

  • TM Collaborator
  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1101
  • Last Login:Today at 06:16:15 am
    • Hot Springs and Highways pages
Re: Non-connected related routes - definition discussion
« Reply #18 on: July 02, 2020, 03:08:57 pm »
I think it's a decent stopgap, even if the "similar routes" list is longer than the old "related routes" list such as by including stuff like "AntChiMaz" (I would not worry too much about fixing that). I also am OK with the term "similar routes", to reserve "related routes" for a more refined definition used for non-HB purposes.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2987
  • Last Login:January 24, 2021, 03:29:14 pm
Re: Non-connected related routes - definition discussion
« Reply #19 on: July 02, 2020, 03:14:05 pm »
(@Jim, why AntChiMaz?)

Looks like it has "tCh" in the middle!

Ok, but why does https://tmtest.teresco.org/hb/showroute.php?r=deurp.a001 output A1 routes only and not A10, A11, A12 etc.?

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2000
  • Last Login:Yesterday at 11:50:39 pm
Re: Non-connected related routes - definition discussion
« Reply #20 on: July 02, 2020, 04:03:13 pm »
(@Jim, why AntChiMaz?)

Looks like it has "tCh" in the middle!

Ok, but why does https://tmtest.teresco.org/hb/showroute.php?r=deurp.a001 output A1 routes only and not A10, A11, A12 etc.?

Here's the query:

Code: [Select]
select * from routes where (route like '".$routeInfo['route']."' or route regexp '".$routeInfo['route']."[A-Za-z]');
where $routeInfo['route'] is the route name without region, banner, abbrev.  This just about the old Mapview query.  The regexp part is going to match anything that starts with the route plus a single letter.  So that gets NY30A from NY30, I-35W from I-35.  The like part is a little more mysterious to me.  I think maybe I should replace it with an exact match.