Hello,

Due to the current situation of coronavirus. We (me and some friends, from Tunisia) were asked by the government to create a map with all the pharmacies.

All they could provide us with were different lists of pharmacies with lat/lng from different sources.

We decided we'll use OSM for that purpose and the question is : Is it ok to add tags like "ref:med.tn = 3233" which means the source is www.med.tn and the pharmacy id in their database is 3233 ? Is there any chance a script might remove them ?

We have a few sources and that would allow us to synchronise everything with what' already available in OSM.

Or should we use a different tag/technique for that matter ? I would like to avoid the node/way Ids as there are a lot of duplicates already in the actual map.

Thank you

PS: We already started ... those tags would be removed in a few months, it's just temporary.

asked 20 Mar, 12:36

selimachour's gravatar image

selimachour
265
accept rate: 0%


The fastest and easiest way to create a map like you say is umap.openstreetmap.fr - just create a JSON file with the pharamacies, open it on umap, and you're done!

In order to import data into OpenStreetMap, you need to follow the import guidelines (https://wiki.openstreetmap.org/wiki/Import). Please pause any activities adding data to OSM until you have read and understood these guidelines.

Among other things, we need to establish:

  1. Are the sources that you want to use cleared from a copyright point of view? You say that you have "a few sources" and it is unclear what the license is on those; just because someone in the government has given you a few lists doesn't necessarily mean anything.

  2. What is the data quality like? Do you have the local knowledge (or additional sources) to verify the data? More often than not, such data sets have had their lat/lon created by throwing an address into a geocoder which can lead to copyright issues (see 1) but also to locations that are hundreds of metres away from the correct spot (occasionally even in a different city).

  3. What exactly is your procedure to "synchronize" with what is already in OSM?

Using an "umap" for your project is quick way of getting something done that you can show to the government; we can then take the necessary time to vet the dataset for import in OpenStreetMap proper and ultimately have the data in OSM, but you cannot import questionable data just like that.

permanent link

answered 20 Mar, 12:51

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
72.8k856601132
accept rate: 24%

2

As pointed out in a recent question, different types of element can have the same id, but they are unique within each type.

(20 Mar, 15:09) H_mlet

Hi Frederik,

I did start with umap (which I oftern use) this morning but quickly gave up. The idea was to use overpass to query all the pharmacies but lots of "name:en" with no "name" etc ... I thought I might as well fix those in OSM.

I will take the time to read the https://wiki.openstreetmap.org/wiki/Import

  1. The second I read the word "source", I decided to stop :) Thank you for pointing this out. It completely slipped my mind
  2. The quality is actually good but maybe not complete. We're verifying by doing searches on google for the pharmacies and looking at the infos they provided (address, phone numbers, opening hours ...)
  3. The procedure is just manually checking with JOSM, importing from OSM and checking the around which already shows that sometimes up to 3 nodes or closed ways exist for the same pharmacy

I will revert to creating an extra table in my postgres database (which is updated every night from geofabric) which will hold a merge of osm + the extra sources.

Last Question: In the OSM database, there are node Ids, way Ids, and relation Ids. Are they all unique within each other ? Is it possible to have the same Id for a node and a way ?

Thanks again

permanent link

answered 20 Mar, 13:12

selimachour's gravatar image

selimachour
265
accept rate: 0%

edited 20 Mar, 13:13

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×849
×21
×2
×1

question asked: 20 Mar, 12:36

question was seen: 127 times

last updated: 20 Mar, 17:13

powered by OSQA