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:
thank you cheers daniel asked 27 Oct '15, 15:25 dk1990 aseerel4c26 ♦ |
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:
Please do not repeat these mistakes. answered 27 Oct '15, 15:57 Frederik Ramm ♦ 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 ♦
|