An alternate name street must
also have the same city as the primary segment. (My emphasis added)
This may be a best practice, but it's not enforced by WME. Here's some bullet points of what's possible:
(When you click a segment, it has either a City (CityID) or (None), and a state as its primary, as we know.)
* If the primary segment has 'None' for a city, clicking 'alternate name' will put in a City field with 'None' checked, but you can uncheck it. This means alt can have a city even if the primary does not.
* If the box is unchecked, the suggested added city is the same as the primary segment, but the field is editable. You can change it to anything you like, including:
- A city name that doesn't exist in your state, which creates a new CityID (includes misspells)
- A city way way far away from where you are - a condition that's caught by checking the primary segment, but alt segments aren't checked (i.e, I could add an alt segment in Grand Coulee, WA to one in Burien, WA, and confirmed it has the same CityID with Timbones's highlight script)
Implicitly, the state and country of the segment you are working on is added to the alt text when you add that alt text. I suspect that if you live in an area where an irrational state or country is present (smudging), and add an alt text with that bad default in place, you'll add a city/state/country matching that bad data in the alt. You then MAY get an error when you try to save (primary segment is checked of course), but I'd bet money the alt text still has the bad CityID even if you fix the primary and save.
Research shows me that Timbones's highlighting script knows to 'get cities' with bad alt text, because it's a general 'show me all the cities in this area' query. However, it does not check alt properties, so if an alt text is smudging a city/state/country, that tool can't find it.
On that subject, there already exist segments with these properties; have a look at https://www.waze.com/editor/?zoom=6&lat=47.47196&lon=-122.31685&layers=BTTFFTTTFTTFTFFTFTTTTFT&segments=54594585
, segment 54594585.
Primary: Des Moines Way S, Burien, Washington, United States
Alt: Des Moines Memorial Dr, SeaTac
Alt2: Des Moines Way S, SeaTac
If the CityIDs don't match at save time, error out. We've got countless mismatches already, but now that we're down to one editor, at least we can stop more of them from showing up! Once that bounds checking is in place, It may also be worth Waze scrubbing all segments to make any alt CityID match the primary in that segment. It would save us countless hours of work.