Proposed import of Marketplace Activity Index

Hello!

I am proposing to import the Marketplace Activity Index dataset, sourced from https://market-activity.net/. This is a continuation of a previous discussion: Importing marketplace data

Documentation
This is the wiki page for my import: https://wiki.openstreetmap.org/wiki/Marketplace_Import
These are the source dataset’s websites: http://market-activity.net/, https://github.com/pauldingus/MAI-replication-package/

These are the files I have prepared which show the data after it was translated to OSM schema:
Overlapping markets: https://drive.google.com/file/d/1N8MWKNl3tCrYMWgBrakJd49YXiixKuee/

Non-overlapping markets: https://drive.google.com/file/d/1IKB_WkpAgQXbJ90MNGJHbDuw63xuQNh2/

License
I have checked that this data is compatible with the ODbL.
This data is distributed under CC BY 4.0 and I have a signed waiver from the data owner that ensures the approval of the ODbL terms for compatibility. It is under the standard waiver format: Licence/Waiver and Permission Templates/Cover letter and waiver template for CC BY 4.0 - OpenStreetMap Foundation

Abstract
The dataset contains outlines of periodic marketplaces across Ethiopia, as detected using satellite imagery under the Marketplace Activity Index project. It consists of 1,800 open-air periodic marketplaces in Ethiopia, along with their typical extent and days of operation. Markets in additional countries across Africa and South Asia will be added during 2027. 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. For context, I am currently working for this project as a research assistant.

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. The market outlines are currently stored as features in GEOJSON feature collections, with associated “market day” properties.

The import method would be JOSM. I first inspect the overlap with currently tagged market locations. Then I simplify the shapes before the import to have at most 30 vertices and finally convert it to two different .osm files (one for overlapping and one for non-overlapping markets) using python. Then using JOSM I would handle the overlapping markets by attaching our data (shape, market-day) to locations for which that information doesn’t already exist.

The import would be done in batches of 100 using the import account (miikatakala_import | OpenStreetMap)

Proposed tags:
amenity=marketplace
opening_hours=market day-of-week in opening_hours syntax
source: GitHub - pauldingus/MAI-replication-package · GitHub; Using satellite imagery to map rural marketplaces and monitor their activity at high frequency | Nature Communications

One question to start with: when adding data to an existing point (so f.ex. adding a market day to already mapped market) how does one tag the source correctly so that it is clear what part of the tagged information came from where? Would it be source:opening_hours=Marketplace Activity Index?

Thanks for going through the work to prepare this, it is very comprehensive.

Looking at your process on the wiki,

Intersect with our detected marketplace outlines in python to find overlapping markets

For detected markets intersecting with a point geometry in OSM

Will you just be comparing your data to OSM nodes? there are several ways and relations of marketplaces.

In this example, the market is already mapped as a way, and seems to cover the whole area that I assume is “the designated marketplace block”

In this example, the market is represented as a node, but it does not intersect your detected area. Additionally, it looks like the marketplace encompasses a much larger area than was represented with your area.

In this example, two markets are mapped on OSM and you have detected it as one market.

How would you handle these examples? I’m not confident that intersect alone will be sufficient to conflate this data.There are some other tools the community has made for some of these harder cases, like the conflation plugin in JOSM.

1 Like

Thank you for your response and helpful comments!

On the data preparation stage I am comparing our data with existing OSM shapes and nodes in python but after the .osm file export handling the overlap with the JOSM Conflation plugin. In the first example you pointed out, I would not overwrite the existing shape. Those pairs could be identified by finding the matches between our and OSM data based on distance and not intersection. Therefore, if there is already a shape within a sufficient proximity (proposing 50m), I would not overwrite that shape. For the second example, I noticed that we have a relatively small number of cases with our markets very close to existing nodes, so these would be handled manually by selecting the whole market area. For the third example I would also not overwrite the current two shapes and those cases can be found by matching our shapes with existing shapes close to them (similar to the approach for the first case you pointed out).

If this approach sounds reasonable, I will edit this into the wiki!

Yes, this is the way to go. Intersection will not be a reliable way to match objects. I trust you will find an appropriate distance to determine matching pairs.

I’m not sure what you mean by this. Could you clarify a little more what you would do in this case?

So if it would be clear in the satellite imagery where the outline of the market lies and it would be different from our data, I would hand-draw the shape (in the case that there is originally no shape there). If the market outline wouldn’t be clear from satellite imagery, I would then leave the node and not overwrite it with our shape.

1 Like

Perfect! Thanks!

Import of the markets in Ethiopia completed using miikatakala_import account: Changesets by miikatakala_import | OpenStreetMap

I added 1509 new markets, added the market day to 156 markets with a pre-existing shape already in OSM, and added the market day and shape to 61 markets with a pre-existing node already in OSM. The hand-drawn edited shapes have a source:geometry = Esri World Imagery and when only the market day was added, I used source:opening_hours. A few unclear cases had an existing shape / point close to a market shape in my data, but I was not able to determine from the imagery whether they are the same or two different markets so I didn’t import them but kept the initial OSM data as it was.