# 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](https://www.geonames.org) postal code export for Morocco, [CC BY 4.0](https://creativecommons.org/licenses/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
