Postal Codes Dataset for Morocco, MA

434
Updated:
Files:1
Size:105 kB
Rows:1,325
Formats:csv
License:CC-BY-4.0

Postal Codes Dataset for Morocco, MA including name of the city, town, or place, various administrative divisions and alternative city names.

Part of a Data Solution

  • Postal Codes Solution

    Every worldwide postal-code dataset in one bundle — the ultimate global reference for precise postal codes.

    Explore →

Premium

You're viewing a free sample

Get the complete dataset — all rows and files — delivered instantly after checkout, with lifetime access to the latest version.

  • Secure checkout via Stripe
  • Instant download after payment
  • Lifetime access to the latest version
  • Creative Commons Attribution 4.0 International license
20% off
$49.90$39.92
one-time payment

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/logistics/postal-codes-ma/
https://datahub.io/logistics/postal-codes-ma/_r/-/.licensing-notes.md
https://datahub.io/logistics/postal-codes-ma/_r/-/.migration-notes.md
https://datahub.io/logistics/postal-codes-ma/_r/-/ATTRIBUTION.txt
https://datahub.io/logistics/postal-codes-ma/_r/-/README.md
https://datahub.io/logistics/postal-codes-ma/_r/-/datapackage.yaml
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.yaml— metadata & schema
https://datahub.io/logistics/postal-codes-ma/_r/-/datapackage.yaml
README.md— documentation
https://datahub.io/logistics/postal-codes-ma/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.yaml to inspect schema and resources
  2. 2. Download data resources listed in datapackage.yaml
  3. 3. Read README.md for full context

Data Files

postal-codes-ma-sample

About

Last updated
2 October 2026
Total rows
100
Format
CSV
File size
9.2 kB

About this dataset

Postal Codes Dataset for Morocco (MA)

This dataset lists Moroccan postal codes with place names, regions, provinces and prefectures, and coordinates, across every region, with ISO 3166-2:MA region codes.

Column definitions, row count, size and last-updated date are in datapackage.yaml.

Data Sources

  • Postal codes, place names, administrative divisions and coordinates: © GeoNames postal code export for Morocco, CC BY 4.0.

Changes made to the source data: region codes (admin_code1) given as ISO 3166-2:MA (the MA- prefix added to GeoNames' own two-digit region codes); other values copied as supplied.

Not endorsed by, or affiliated with, GeoNames.

See ATTRIBUTION.txt for the full attribution notice.

Known limitations

  • admin_code2 is a GeoNames-internal identifier, not an official Moroccan province or prefecture code. ISO 3166-2:MA defines codes only at the region level, so there is no official code to substitute. The value is retained for joins but should not be treated as authoritative.
  • Disputed territory: some rows are localities inside Western Sahara (admin_code1 MA-11 Laayoune-Sakia El Hamra, or MA-12 Dakhla-Oued Ed-Dahab), a territory whose sovereignty is internationally disputed. They are filed under ordinary Moroccan region and postal codes with no separate marker, as GeoNames and Barid Al-Maghrib both treat them. This dataset carries that treatment through unchanged and takes no position on sovereignty.
  • admin_name3, admin_code3 and alternative_city_name are empty.

Usage

The dataset files are available in CSV format and can be accessed and downloaded using the links provided in datapackage.yaml. Read admin_code2 as text, never as a number: it keeps its leading zeros.

For other inquiries, contact datahub@datopian.com