User:Xanderb/VScripts View history

Line 103: Line 103:
Custom Regexp:
Custom Regexp:


!/(Unknown Name| A(cres?|ly|nx|ve|r(c|tery))| B(ch|end|l?vd|lf|ridge|roadway|nd|yp(ass)?|rae|r(g|ks?)?|tm|(ike|us)way|yu)| C(t|lb?|hase|mns?|o(rs|rner|ve)|ONN|p|r(es|se|st|eek)?|ir|swy|tr|urv|yn)| D(am|l|ell|r)| E(ast|dgeway|nt|xit|sts?|splanade|x(t|py))| F(rk|wy|all|l[st]|t)| G(r|ln|rv|r(ee)?n|dns?|ate|twy)| H(br|ls?|olw|ts|wy|ospital)| I(l|nlt)| Jcts?| K(eys?|nls?)| L(cks?|dg|in[ke]|k|f|gts?|ndg|[np])|oop| M(all|dws?|nrs?|t(wy|ns?)?|w|ile|ohr|ews|sn)| N(eck|orth)| O(ne|rch|val|pas)| P(ark|ath|r(om|ts?)|de|l(ns|z)?|k(e|s)?|kwys?|oint)| R([id]|each|ow|i(se|v)|amp|ailroad|nch|R|ailway|pds|dge|u(n(way)?|e)|te)| S(h(ls?|rs?)|kwy|mt|outh|p(ur|ngs?)|upermarket|t(a|n|rut)|[qt]s?)| T(er|hwy|rce|pk|unnel|urn|r(l|fy)|ra(k|il|in))| U(pas|ns|ppr)| V((ie)?ws?|ista|l(lys?|g)|dct|st)| W(alk|ays?|ls?|est|ynd)| X(ing|rd)|^$)( [SNEW]{1,2})?$|^([SNEW]{1,2} )?(Old )?(Broadway|MBTA|Railroad|Amtrak|I-|IN-|IA-|KY?-|US-|LA?-|M[DNSO]?-|N[VJYCD]?-|S[CDRH]?-|RI?-|TN-|V[AT]-|W(V|IS)-|C[RH]-|Runway|Place |Avenue of |Circle of |State |County |The |to |E(xit( to:)?|ntry) )/
!/(Unknown Name| A(cres?|ly|nx|ve|r(c|tery))| B(ch|end|l?vd|lf|ridge|roadway|nd|yp(ass)?|rae|r(g|ks?)?|tm|(ike|us)way|yu)| C(t|lb?|hase|mns?|o(rs|rner)|ONN|p|r(es|se|st|eek)?|ir|swy|tr|urv|v|yn)| D(am|l|ell|r)| E(ast|dgeway|nt|xit|sts?|splanade|x(t|py))| F(rk|wy|all|l[st]|t)| G(r|ln|rv|r(ee)?n|dns?|ate|twy)| H(br|ls?|olw|ts|wy|ospital)| I(l|nlt)| Jcts?| K(eys?|nls?)| L(cks?|dg|in[ke]|k|f|gts?|ndg|[np])|oop| M(all|dws?|nrs?|t(wy|ns?)?|w|ile|ohr|ews|sn)| N(eck|orth)| O(ne|rch|val|pas)| P(ark|ath|r(om|ts?)|de|l(ns|z)?|k(e|s)?|kwys?|oint)| R([id]|each|ow|i(se|v)|amp|ailroad|nch|R|ailway|pds|dge|u(n(way)?|e)|te)| S(h(ls?|rs?)|kwy|mt|outh|p(ur|ngs?)|upermarket|t(a|n|rut)|[qt]s?)| T(er|hwy|rce|pk|unnel|urn|r(l|fy)|ra(k|il|in))| U(pas|ns|ppr)| V((ie)?ws?|ista|l(lys?|g)|dct|st)| W(alk|ays?|ls?|est|ynd)| X(ing|rd)|^$)( [SNEW]{1,2})?$|^([SNEW]{1,2} )?(Old )?(Broadway|MBTA|Railroad|Amtrak|I-|IN-|IA-|KY?-|US-|LA?-|M[DNSO]?-|N[VJYCD]?-|S[CDRH]?-|RI?-|TN-|V[AT]-|W(V|IS)-|C[RH]-|Runway|Place |Avenue of |Circle of |State |County |The |to |E(xit( to:)?|ntry) )/

Revision as of 19:51, 30 September 2015

This is just a storage space for some of the custom Validator scripts that I use.

Validator Localization

Localization scripts allow you to customize results in Validator that you always want to use while leaving the two manual entries free for more scripts you want to use temporarily(I am currently using the custom entries for the color variance. You will need to have the Validator extension loaded before using these additions.

Kentucky

Localization for Kentucky contains the following:

  • Highway Renaming Project
  • City or County Roads
  • Saint / Street and Doctor / Drive warning
  • Short, Dead End Parking Lots
  • Not Kentucky - Many rural roads have the wrong state listed and it is helpful for letting you know you are getting close to a state border.
  • Incorporated city names - It doesn't check boundaries, but if a segment has a city name that is not an incorporated city in Kentucky it will highlight. (This is being tested only in KY localization currently)
  • Alley PLR check
  • Lock Level by Road Type

Indiana

Localization for Indiana MeridianHills will be testing it and possibly adding more if he feels something should be added for Indiana.

Tennessee

Localization for Tennessee Released to TN Editor Google Hangout group. It is updated as needed.

Ohio

Localization for Ohio TerryPurdue is testing it and adding more

Wisconsin

Localization for Wisconsin

Highway Renaming Project

This script will Highlight incorrect or old Street Names and Alt Names in Indiana, Kentucky, and Tennessee. I use this primarily for the State Highway renaming project.

Custom Template:

#${street}#${altStreet[#]}#

Custom RegExp:

/State Hwy|SR-|SH-|State Rd|Cs-|CS-|Ky-|Tn-|In-|County Hwy|County Rd|Cr-|KY=|IN=|TN=|State Rte|Co Rd/

TTS Issues

Street name with Dr (Doctor), St (Saint) or Jr (Junior) need to have a period after the abbreviation.
eg. St Catherine St is read "Street Catherine Street" in the app.

Custom Template:

#${street}#${altStreet[#]}#

Custom RegExp:

/^St |^Dr |Jr /

Short Parking Lots

Highlights Dead end Parking Lot Roads that are shorter than 50m.

Custom Template:

${deadEnd}:${typeRank}:${length}

Custom RegExp:

/1:7:([0-4]?[0-9])$/

Road Locking

Highlights segments not locked where they should be according to Road Type
Kentucky uses the 54321 standard, this script follows this, but only makes sure ramps are 2 or higher.

Custom Template:

${typeRank}:${lock}

Custom RegExp:

!/^(15:[5-6]|14:[4-6]|13:[3-6]|12:[2-6]|11:[2-6]|10:[1-6]|2:[2-6]|[1,3-9]:\d+)$/

Alleys

Alleys should be set as a Parking Lot Road

Custom Template:

${street}:${typeRank}

Custom RegExp:

/.*(Alley| Aly):[^7]/

Road Name Abbreviations

This one is a work in progress to get everything added. Sketch provided the first version of this in the validator forum but I altered it quite a bit.

Custom Template:

${street}

Custom Regexp:

!/(Unknown Name| A(cres?|ly|nx|ve|r(c|tery))| B(ch|end|l?vd|lf|ridge|roadway|nd|yp(ass)?|rae|r(g|ks?)?|tm|(ike|us)way|yu)| C(t|lb?|hase|mns?|o(rs|rner)|ONN|p|r(es|se|st|eek)?|ir|swy|tr|urv|v|yn)| D(am|l|ell|r)| E(ast|dgeway|nt|xit|sts?|splanade|x(t|py))| F(rk|wy|all|l[st]|t)| G(r|ln|rv|r(ee)?n|dns?|ate|twy)| H(br|ls?|olw|ts|wy|ospital)| I(l|nlt)| Jcts?| K(eys?|nls?)| L(cks?|dg|in[ke]|k|f|gts?|ndg|[np])|oop| M(all|dws?|nrs?|t(wy|ns?)?|w|ile|ohr|ews|sn)| N(eck|orth)| O(ne|rch|val|pas)| P(ark|ath|r(om|ts?)|de|l(ns|z)?|k(e|s)?|kwys?|oint)| R([id]|each|ow|i(se|v)|amp|ailroad|nch|R|ailway|pds|dge|u(n(way)?|e)|te)| S(h(ls?|rs?)|kwy|mt|outh|p(ur|ngs?)|upermarket|t(a|n|rut)|[qt]s?)| T(er|hwy|rce|pk|unnel|urn|r(l|fy)|ra(k|il|in))| U(pas|ns|ppr)| V((ie)?ws?|ista|l(lys?|g)|dct|st)| W(alk|ays?|ls?|est|ynd)| X(ing|rd)|^$)( [SNEW]{1,2})?$|^([SNEW]{1,2} )?(Old )?(Broadway|MBTA|Railroad|Amtrak|I-|IN-|IA-|KY?-|US-|LA?-|M[DNSO]?-|N[VJYCD]?-|S[CDRH]?-|RI?-|TN-|V[AT]-|W(V|IS)-|C[RH]-|Runway|Place |Avenue of |Circle of |State |County |The |to |E(xit( to:)?|ntry) )/