Web Design Discussion > General Web Design Discussion

New page: routes traveled by number

(1/6) > >>

Jim:
A suggestion was made on AARoads in https://www.aaroads.com/forum/index.php?topic=24342.msg2694805#msg2694805 to make a web front-end version of the code that gets routes by number.  I got going on it, turns out it was pretty simple.

The new page user/routesbynumber.php is now just on tmdevel but once some eyes have had a chance to check it out and report problems and offer suggestions, I'll put it on the main site and link from user/index.php.

Comments welcome.

si404:
Looks good, if a little visually odd with the plain white table.

I'll second Oscar's point about '0'. There are legit route zeros in Belgium, Czechia and Hungary. The others are unnumbered and ought to be listed at the bottom of the table (if at all?) under '-' or some other N/A descriptor.

There's also some false positives where a named road has a number in it, like T5 Spur (the spur of the motorway network to Heathrow Terminal 5), or MKAD2 (the 2nd Minsk Motorway Ring)

My score of 69 is surprisingly good, looking at that thread and seeing how low ranked, generally, I am in travels. It's also quite nice to be able to see the highest number I've travelled on (8008 - my travels seem to be rather childishly dirty!).

----
"TM is chock full of toys for subsets of the userbase!"

Are there toys for other similar games that use our database and user data that could also be implemented?

How about a stat for how many unique numbers has someone travelled on? (and in a 4-digit only variant, I think I might win - certainly top 5. Thanks GB numbering scheme!) Could be put on the same page as it is a similar game.

There's also how many different prefixes you've done (not the same as how many systems as many systems share prefixes like A, B, N or D, and others have several prefixes, like in Spain), but that might be a bit harder to implement.

And then there's the "have I done every route with that number game". It's a little meaningless with higher numbers that are likely to be unique, and with the global nature of the TM database would be rather impossible, but filters and the like to get it down to something meaningful allowing you to say something along the lines of "hey, I've done part of every route 1 in the US and Canada" sounds like a fun game.

----

There's the general geekery stuff that doesn't use user data - roads of same numbers but different type meeting each other (excluding banners), concurrency stats (longest, most), nodes with the most branches out of them, what numbers don't have roads attached to them?, etc. Would pages for them be a good idea?

Markkos1992:
Would it be useful to put the missing route numbers in its own table?

michih:
Bug: Zero also outputs O and o ???

https://tmdevel.teresco.org/user/routesbynumber.php?u=terescoj


--- Code: ---ONQEW, ONGar, TCH, OreMot, AtlCityExpy, BeltPkwy, BerCon, BroRivPkwy, CroCouPkwy, DalNorTlwy, EveTpk, FLTpk, FDRooDr, GarStaPkwy, GraCenPkwy, HarRivDr, HenHudPkwy, HutRivPkwy, InnLoop, JamWhiPkwy, JohnKilTpk, LakeOntPkwy, MTAppRd, MilPkwy, NJTpk, PalIntPkwy, PenaBlvd, PreBidExpy, RalChaExpy, SawMillPkwy, ScaCon, SolFieRd, SprBroPkwy, StoDr, TacStaPkwy, VetMemPkwy, VetPkwy, WanStaPkwy, CadSumRd, ParkLpRd, MainParkRd, BadLpRd, BalWasPkwy, SouRimDr, BlueRidPkwy, LinFalRd, IslSkySceDr, CraCrkRd, CraLakeHwy, CraLakeRimDr, ParkRd, DevTowRd, GWMemPkwy, TetParkRd, CliDomeRd, CraRd, ChaCraRd, CraRimDr, RocMemPkwy, CaveCityRd, MamCavePkwy, SteCynRd, BriViewDr, PetForRd, LoopRd, EastRivRd, SceLpDr, DunDr, EEntRd, GraLpRd, NorCynRd, NEntRd, NEEntRd, SEntRd, WEntRd, AudPkwy, GarExpy, RingRd, DtAlpStr, BearMtnPkwy, KorWarPkwy, MosPkwy, SevLakDr
--- End code ---

si404:

--- Quote from: michih on January 04, 2022, 09:40:40 am ---Bug: Zero also outputs O and o ???
--- End quote ---
It's anything that doesn't use the numbers 1-9.

Navigation

[0] Message Index

[#] Next page

Go to full version