Re: Saint versus Street

krikketdoug wrote:berestovskyy wrote:krikketdoug wrote:1> Walking trails and other non-drivable road types that have a elevation of something other than -5 be flagged.
You can use a custom check in Validator for that:
template: ${typeRank}:${elevation}
regexp: /^5:(?!-5)/
By chance is this one of those features linked to editor rank? I've looked about my system and haven't been able to find a way to do this.
If you're having trouble finding where to enter this, go to the Validator Settings (gear icon) and enter it in the appropriate boxes (first two) in the pane (labeled Custom template and Custom RegExp). It's not dependent on rank. See the Custom Checks examples for more info.
krikketdoug wrote:An idea for another invalid street name check, that might be workable...
I was out on a drive and I heard a couple of times at different streets, "Turn right on Street Charles Road". Kind of obvious what the problem was when I thought about it. St. is the abbreviation for Saint and Street.
Given that Street would only be used at the end of the street name, but Saint would be used after the directional (if any) and before the name, could Validator look for St in this context?
Just a thought.
This could be checked for with the following RegExp (should work, but untested; maybe someone can correct me if I'm wrong?):
Custom template: ${street}
Custom RegExp: /^St .*/i