Marketplace Import

From OpenStreetMap Wiki
Jump to navigation Jump to search

Marketplace Import is an import of a dataset containing outlines of periodic marketplaces across Ethiopia, as detected using satellite imagery under the Marketplace Activity Index project. Markets in additional countries across Africa and South Asia will be added during 2027. The import is currently (as of 23.10.2026) at the planning stage.

Goals

The Marketplace Activity Index project catalogued around 1,800 open-air periodic marketplaces in Ethiopia, along with their typical extent and days of operation. The marketplaces were detected based off periodic appearance changes in high-resolution satellite imagery, and verified by superimposing onto very-high-resolution imagery, in order to discard false positives. The majority of the detected and confirmed markets are not currently registered in OSM. For markets already registered in OSM, our data can complement existing records on days of operation, where applicable.

Schedule

14.10.2026: First post to the forum Initial discussions

November 2026: suggested upload date of market outlines in Ethiopia

February 2027: Suggested upload date of markets in remaining countries

Import Data

Background

Data source site: Marketplace Activity Index Dashboard
Type of license (if applicable): CC BY 4.0 (with a waiver signed)
OSM attribution (if required): https://market-activity.net/
ODbL Compliance verified: yes (with a waiver)

Import Type

We suggest to first import the market outlines for Ethiopia, as published in nature.com/articles/s41467-026-72865-z/, and subsequently for other countries covered in the project (primarily in Africa and South Asia). The imports would be done in batches of 100 markets at a time. The import method would be JOSM, first converting the data to .osm and after visual inspection, uploading through JOSM.

Import account: https://www.openstreetmap.org/user/miikatakala_import

Data Preparation

Data Reduction & Simplification

We simplify the shapes before the import to have at most 30 vertices.

Tagging Plans

amenity=marketplace

opening_hours=market day-of-week in opening_hours syntax

source: https://github.com/pauldingus/MAI-replication-package; nature.com/articles/s41467-026-72865-z/

source:opening_hours=Marketplace Activity Index (for merge tags for existing shapes in OSM)

Changeset Tags

Key Value
import yes
source Marketplace Activity Index
source:url https://github.com/pauldingus/MAI-replication-package; nature.com/articles/s41467-026-72865-z/
import:page wiki.openstreetmap.org/wiki/Marketplace_Import
source:license CC-BY-4.0

Data Transformation

The market outlines are currently stored as features in GEOJSON feature collections, with associated “market day” properties. After transforming to OSM XML using python, the results can be reviewed in JOSM.

Data Transformation Results

We inspected 20 shapes and the transformation performed satisfactorily.

Overlapping markets .osm file: [1]

Non-overlapping markets .osm file:[2]

Data Merge Workflow

Workflow

  1. Query locations currently tagged as amenity=marketplace in OSM
  2. Intersect with our detected marketplace outlines in python to find overlapping markets (within 50m radius)
  3. Simplify our marketplace shapes to maximum 30 vertices
  4. Export separate .osm files for overlapping and non-overlapping markets
  5. For detected markets not intersecting or within 50m with any existing locations:
    • Export shapes to JOSM and confirm correct visual appearance
    • Import into OSM
  6. For detected markets intersecting or within 50m with a point geometry in OSM
    • Export shapes to JOSM
    • Match with current marketplaces in OSM
    • Manual review of all cases:
      • Replace points with polygons (replace geometry) and attach opening hours information (merge tags), if not already included, using the JOSM Conflation plugin
      • If the market shape can be detected through satellite imagery, the shape is adjusted by hand-drawing it over the whole market.
    • Inspect & import into OSM
  7. For detected markets intersecting or within 50m with a polygon geometry in OSM:
    • Export to JOSM
    • Match with current marketplaces in OSM and attach opening hours information (merge tags), if not already included, using the JOSM Conflation plugin
    • Import into OSM keeping the old polygons

Conflation

Existing amenity=marketplace features will be used for conflation. If our market shape overlaps or is within 50m to an existing amenity=marketplace point in the map, it will not be overwritten, but instead our data (shape, market day) will be added to the existing location using the JOSM Conflation plugin. Market day and shape will only be included if the location doesn't already have them. In cases where the shape will overwrite an existing node, these are manually reviewed through satellite imagery before import.

Discussion

The post to the community forum was sent on 2026-10-14 and can be found on Initial discussions