Modify

Opened 16 years ago

Closed 15 years ago

#3037 closed enhancement (wontfix)

[PATCH] Invalid maxspeed values...

Reported by: delta_foxtrot2 Owned by: team
Priority: major Milestone:
Component: Core validator Version:
Keywords: Cc: delta_foxtrot@…

Description

Going through tagwatch there is a lot of people appending km/h, kph, km/hr etc to metric maxspeeds.

Attachments (2)

tagchecker.patch (655 bytes ) - added by delta_foxtrot2 16 years ago.
maxspeed-validator.patch (914 bytes ) - added by plaicy 16 years ago.

Download all attachments as: .zip

Change History (10)

by delta_foxtrot2, 16 years ago

Attachment: tagchecker.patch added

comment:1 by delta_foxtrot2, 16 years ago

Cc: delta_foxtrot@… added

comment:2 by delta_foxtrot2, 16 years ago

Now that I think about it, it might be better to do the check against what's valid and error on everything else, however I suck at regex so I can't suggest something better.

comment:3 by stoecker, 16 years ago

Possibly this?

(\d+( ?mph)?)|walk|city_limits|no

in reply to:  3 comment:4 by delta_foxtrot2, 16 years ago

Replying to stoecker:

Possibly this?

(\d+( ?mph)?)|walk|city_limits|no

Yes, but doing an inverse match :)

by plaicy, 16 years ago

Attachment: maxspeed-validator.patch added

comment:5 by plaicy, 16 years ago

Maybe the check for highway = * can be removed.

comment:6 by stoecker, 15 years ago

Resolution: wontfix
Status: newclosed

It is not yet clear what values will be supported in maxspeed and tagwatch doesn't list errors for maxspeed, so I close this as wontfix, as it will do more harm than good.

comment:7 by delta_foxtrot2, 15 years ago

Resolution: wontfix
Status: closedreopened

Why will this do more harm than good exactly?

According to the wiki maxspeed should be a number, or a number with mph only.

comment:8 by stoecker, 15 years ago

Resolution: wontfix
Status: reopenedclosed

Because walk, city_limits and the others you gave are no really used, but DE:urban and other types are. And as currently it is not yet decided how this is handled a check forcing one way or another would be bad. These types probably vanish due to the speed tagging on country relations, but at the moment they are used.

Also there aren't many errors in this value, so this check is not really required.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.