NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello,

i'm trying to update or post business listings via api to the Openstreetmap. However i haven't found any information regarding this topic.

So my question is: Which APi do i use and post or update to? Where can i find a documentation regarding the data fields.

For information on how to transfer the data: For example:

dict = {
name: somename,
street: somestreet,
hours: 1: 12:00-14:00, 2:14:00-16:00

}

thank you

cheers daniel

asked 27 Oct '15, 15:25

dk1990's gravatar image

dk1990
26112
accept rate: 0%

edited 03 Jan '16, 00:45

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


The OSM API described on the Wiki is the one you would use for any attempt at modifying existing OSM data or adding new data. There are also a couple of libraries in various programming languages that make talking to the API easier.

The opening hours syntax in your example is different from what is used in OSM (where day name abbreviations are used).

Please also note that OSM is not primarily a business directory. In the past, people adding business information have made all or some of the following mistakes:

  • adding objects in an automated fashion where data in OSM existed before, leading to duplication.
  • overwriting valid and surveyed data in OSM with something that came from an "official" data source but was incorrect.
  • hiding the source of the data - one "online visibility expert" created many OSM accounts in order to hide the fact that he was behind all these edits.
  • using data sources that are not license-compatible with OSM, for example: company has a list of their branches with addresses but not geo locations, service provider runs the addresses through Google to obtain locations, then adds them to OSM - this is a violation of Google's copyright or terms of use.
  • building mechanical processes that feed data into OSM but neglecting to read and respond to messages that the community sends in response to these edits, e.g. asking questions or criticising something.
  • adding "advertising" messages to OSM - see e.g. https://help.openstreetmap.org/questions/29078/how-to-add-the-tag-paymentbitcoinyes-in-an-openstreetmap-editor-for-the-coinmap for more.

Please do not repeat these mistakes.

permanent link

answered 27 Oct '15, 15:57

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 27 Oct '15, 22:15

Dear Mr Ramm, The Data Updated is done by our business clients (owners of local stores) in combination with our software to make sure no duplicates are added and their correct data is added. We only post real data. I have seen your documentation but there are no field names or anything. I looked for Python 3 packages but couldn't find any documentation regarding this topic.

Would you mind giving me a example for updating and posting new data? (Searching hasn't been a problem) Like this: request.POST(url, data=data) data = {} and one for updating presumably it is done via the osm id? Hours is always difficult with every plattform, so I would appreciate if you would include an example.

We are currently working with Facebook, Foursquare, Factual and Google and would like to add you to our services.

Thanks in advance

Cheers Daniel

(27 Oct '15, 21:52) dk1990
3

A Python API is available https://github.com/metaodi/osmapi/blob/develop/osmapi/OsmApi.py. During development be sure to use the dev server as described on the API wiki page, not the live server.

You will need to use the NodeCreate/NodeUpdate calls from the Python API, or if you are updating a POI that is recorded in OSM as an area not a point you will need to use WayUpdate. It is imperative to get this right - if you create a new node because you didn't notice that there is already a way that describes the POI then you will create duplicates.

Your clients will have to register an account with OpenStreetMap to make their uploads; you cannot register an account for yourself and let all your clients use that because OSM requests the ability to get in touch with the person who uploads data - which is your clients, not you.

Opening Hours syntax is described on the Wiki.

I cannot overstate how important it is to get this right - if you try to dump data into OSM with no regard for the community and its norms then your data will be thrown out, your software blocked and you embarrassed before your clients.

(27 Oct '15, 22:14) Frederik Ramm ♦

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:

×290
×35
×3

question asked: 27 Oct '15, 15:25

question was seen: 3,646 times

last updated: 03 Jan '16, 00:45

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum