Data licences

1. Boundary files (data/boundaries/ and the boundary files shipped
   in the packages) are derived from the Common Operational Dataset for
   Administrative Boundaries (COD-AB) for Sudan, published by the UN Office for
   the Coordination of Humanitarian Affairs (OCHA) on the Humanitarian Data
   Exchange. They are licensed under the Creative Commons Attribution 3.0 IGO
   licence (CC BY 3.0 IGO).

     https://creativecommons.org/licenses/by/3.0/igo/

   Attribution: "Boundaries: OCHA (COD-AB Sudan), via HDX, processed by Sudan
   Atlas."

2. Sudan Atlas's own data (the gazetteer's variant spellings, the
   normalisation rules and the test cases in data/gazetteer/ and data/tests/)
   is licensed under the Creative Commons Attribution 4.0 International
   licence (CC BY 4.0).

     https://creativecommons.org/licenses/by/4.0/

   Attribution: "Sudan Atlas", plus the original source of each variant as
   recorded in the data. Variant spellings come from COD-AB and geoBoundaries
   (CC BY 3.0 IGO), GeoNames (CC BY 4.0, www.geonames.org) and Wikidata (CC0).
   The test cases contain place names from the HDX datasets listed in
   docs/SOURCES.md, each under its own licence (CC BY, CC BY-IGO or CC0).

3. Spellings taken from OpenStreetMap (places tagged city or town, from the
   Humanitarian OpenStreetMap Team's export on HDX) are kept in a separate file,
   data/gazetteer/variants_osm.json, under the Open Database License (ODbL 1.0),
   with attribution "© OpenStreetMap contributors". The packages ship this file
   alongside the others; it is never merged into variants.json. The JavaScript
   build (dist/) embeds an unchanged copy of it, and so does anything built on
   that package; every record there keeps its "osm:" source reference and stays
   under the ODbL.

     https://opendatacommons.org/licenses/odbl/

   What the ODbL does and does not cover:
   - It covers variants_osm.json (and any copy or changed version of it). If you
     redistribute that file, or a database made from it, keep it under the ODbL,
     keep the attribution, and offer the changed database if you publish one.
   - It does not cover the other files. The boundaries, places.json,
     variants.json, the normalisation rules and the test cases are independent
     databases kept beside the OSM file, so the packages are a "Collective
     Database" (ODbL section 4.5) and those files keep their own licences
     (CC BY 3.0 IGO and CC BY 4.0).
   - Matching results (the P-codes and names returned for your data) are, at
     most, a "Produced Work" (ODbL section 4.3): they are not under the ODbL and
     need no share-alike. When a published result relies substantially on the
     OpenStreetMap spellings, add "Contains information from OpenStreetMap,
     available under the ODbL".

The boundaries do not imply any opinion on the legal status of any country,
territory or area, or on the delimitation of any frontier. See
docs/DATA_POLICY.md.

Every source is listed in docs/SOURCES.md. The code in this repository is
licensed separately under the MIT licence (see LICENSE).
