Carouge and addr:city ("Carouge", "Carouge (GE)", "Carouge GE")

This concerns Carouge in the canton of Geneva: Relation: ‪Carouge‬ (‪1685459‬) | OpenStreetMap

There are about 1100 features with “addr:city” in Carouge. To retrieve them:

[out:json][timeout:150];
relation(1685459);
map_to_area -> .a;
nwr(area.a)["addr:city"];
out meta geom;

A while back, I fixed a few entries that had “Geneva” instead of “Carouge”. To determine the new value, I check another that had “Carouge (GE)” or “Carouge GE” and used that. It later occurred to me that “Carouge” is the more common value (700 of 1100). Also, Carouge appears to be the one currently used with NPAs (this may have changed). When entering new addresses in iD Editor, any of the three can get suggested.

To conclude, I’d normalize the values to “Carouge”, at least when “Carouge GE” or “Carouge (GE)” is used.

To find the ones to fix, I tried something like the following, but that doesn’t work:

[“addr:city”][“addr:city”!=“Carouge”];

[“addr:city”][!“addr:city=Carouge”];

Any suggestions?

PS: There is also “Carrouge” in the canton of Vaud: Relation: ‪Carrouge (VD)‬ (‪1684879‬) | OpenStreetMap

The housing stats data that @SimonPoole compiles suggests to use addr:city=Carouge GE for Carouge.

1 Like

Using the wizard and entering "addr:city"=* and "addr:city"!=Carouge in Carouge there leads to

[out:json][timeout:25];
{{geocodeArea:Carouge}}->.searchArea;
(
  nwr["addr:city"]["addr:city"!="Carouge"](area.searchArea);
);
out body;
>;
out skel qt;

People tend to forget this is Switzerland and you can’t expect any consistent naming between different organisations and in this case you can argue that they are different entities in any case :slight_smile:

  • the place would typically be Carouge (except if the locals actually use the geographical disambiguation, but they don’t in this case I assume),
  • the municipality is Carouge (GE) - BfS id 6608
  • the postal city is Carouge GE - PLZ4 1227

The later is what is used in addresses and for addr:city in OSM

2 Likes

Ok, then Carouge GE it should be. Is worth doing an update for that?

Thanks for the help with the syntax: it works when the proceed (), not the other way round.

1 Like