How can I apply a tag to all tertiary & residential streets of a city?

How can I select all tertiary and residential streets of a city to put speed limit 50km/hr? I use iD editor which as I see does not have this feature.
Thank you

The same question was asked the other day on the help-website. The conclusion is you cannot. see answer.

You can edit multiple objects with Potlatch or JOSM. It would still be difficult to select all streets within a city. Do you have a boundary for the city ? If so, you could create an Overpass Query, and load the result in JOSM.

An example Overpass Query (works only in Overpass Turbo, try it here for Terhagen.


/*
This has been generated by the overpass-turbo wizard.
The original search was:
“highway=residential in Terhagen”

The query was manually adapted to only include ways and to also include tertiary roads
*/
[out:json][timeout:25];
// fetch area “Terhagen” to search in
{{geocodeArea:Terhagen}}->.searchArea;
// gather results
(
  way["highway"~"^residential|tertiary$"](area.searchArea);
  
);
// print results
out body;
>;
out skel qt;