Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp store/location support #11233

Open
aleene opened this issue Jan 13, 2025 · 1 comment
Open

Revamp store/location support #11233

aleene opened this issue Jan 13, 2025 · 1 comment

Comments

@aleene
Copy link
Contributor

aleene commented Jan 13, 2025

What

The support for shops and shop locations is now limited to two free entry text fields. The location field effectively only supports one shop location. The shop field is non-taxonomized.

We can draw inspiration (and code?) from the approach taken by prices. By using the OpenStreetMap, the locations can be encoded as OSM-id (node/path/relation). If an actual location is required it is enough to do an OSM lookup.

Thus a field needs to be added that can support multiple OSM-ids. This field can be populated from Prices to begin with, or can be entered by the user using a similar interface as Prices.

The shop names where a product is sold is the same as the brand name as set by OSM and thus can be retrieved there. Advantage that we do not need any effort to set up our own taxonomy or whatever. For shops that are small we can use the shop name as set by the node.

Why

  • Geographic sales distribution - by encoding the sales location we can see where products are sold;
  • Geographic price distribution - we can indicate the expected price per location and shop brand;

Who for

  • all users

See also

@raphodn
Copy link
Member

raphodn commented Jan 13, 2025

Fyi there was a similar (?) discussion here: openfoodfacts/open-prices#263

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To discuss and validate
Development

No branches or pull requests

2 participants