I have got the book on OSM by Ramm and Topf. And I read the Wiki about the API 0.6 and followed the link to http://en.wikipedia.org/wiki/Representational_State_Transfer.

I have managed to try all the examples which can be done with a simple URL. Works fine.

But somehow something is missing. How can I actually use the methods like in a session? There is an illustration in the Wikipedia (a screenshot) showing the use of telnet. I have not found documentation for the OSM API for telnet. Would that be an acceptable way to use the API? What exact URL and what port? 23 or 80?

Could somebody give some practical example for a "dialog" with the API please.

Working on a tiny town in West Africa. So far all is still visible on a single screen in JOSM. But things are getting more complex and soon I could benefit from a structured use of the API.

thank you

asked 31 Oct '10, 12:52

Screentoosmall's gravatar image

accept rate: 0%

The API is meant to be used by editing software, such as JOSM, Potlatch 2 or Merkaartor. It is not, in itself, user-facing. You are not expected to communicate directly with it yourself; rather, you use editing software to do that for you. The P in API stands for "Programming" and it means exactly that.

There is no Telnet interface to the API nor will there be. You could use command-line tools and text editors to communicate manually with the API if you really wanted, but it's very, very hard work.

Standard practice for making "programmatic" changes is to download the data using editor software (usually JOSM, which appeals to this sort of tech-savvy audience); save it as an .osm file; munge it somehow using your scripting language of choice; then re-upload using JOSM. However, this sort of editing can really hack people off if done badly, so exercise great caution if you're doing it in an area where other people are mapping.

permanent link

answered 31 Oct '10, 19:15

Richard's gravatar image

Richard ♦
accept rate: 20%

edited 01 Nov '10, 07:53


Thank you very much. I was mainly after information as in filtered searches for missing tags etc - No worries, I will not mess with scripting anytime soon, neither via API nor via JOSM.

The technical data is all there in the wiki, but with your few sentences, it is now all put into perspective for me. Thanks

(01 Nov '10, 19:28) Screentoosmall
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 31 Oct '10, 12:52

question was seen: 6,018 times

last updated: 01 Nov '10, 19:28

powered by OSQA