Hi everyone, I wanted to share a few improvements I worked on recently that directly affect how we map in Morocco.
1. Address format fixed in iD - PR #11698
I added a proper Moroccan address format to the iD editor. When you map a building now, you’ll see an addr:housename field, which is what you should be using for residence names like “Résidence Soraya” instead of the name tag. I did research using official documents from Barid Al-Maghrib and the UPU to come up with the right format:
Résidence Soraya
15 Rue Al Fourate
20000 Casablanca
If you’ve mapped buildings with name=Résidence Soraya, now’s a good time to migrate to addr:housename. I’ll be fixing my own edits too.
2. Phone number format fixed - iD PR #11651 / libphonenumber issue
The correct Moroccan format (+212 5 12 34 56 78) is now added to the iD editor as the default placeholder. I also filed the issue that got libphonenumber (the library used by pretty much everything to validate phone numbers) fixed to accept it properly. The iD editor now guides the user toward the right format instead of leaving them to guess. No more “06”, only “+212”.
3. Automated phone number validator for Morocco - PR #152
I also got Morocco added to @confusedbuffalo’s OSM phone number validator, which scans OSM data for numbers in bad formats (like 06XXXXXXXX) and helps correct them easily. There’s currently more than 2,500 numbers with the wrong format (half of all the numbers), so let’s get to work.
If you’d like to see similar improvements for another African country (address formats, phone number templates, validator support), feel free to reach out, I’m happy to help guide you through the process.



