osmlab / osmlint

An open source suite of js validators for OpenStreetMap data, to identify common geometry and metadata problems at scale.
ISC License
84 stars 10 forks source link

null values #157

Open mtmail opened 7 years ago

mtmail commented 7 years ago

"Null" means zero in German so there are a couple of lakes or restaurants by that name, they'd be uppercase.

But as you know it also means undefined in Javascript and looking at http://nominatim.openstreetmap.org/search.php?q=null&polygon=1 I see a couple of places that look misnamed, probably by editor software. Elevators, postcodes, highways.

If that's interesting enough to add to a validator (the one that look for "Google" and pokemon words) I'd also suggest looking for 'unnamed', 'unknown', 'no name', 'n/a' and possibly 'none' case-insensitive.

1ec5 commented 7 years ago

The lowercase "null" features look the most suspect. As you said, Null can be a legitimate name; quite a few of those results are TIGER-imported Nulls that we can only assume are legitimate.

"Undefined" is another keyword that would be worth flagging.