I've just started to explore Python OSM API and tried to upload a "way" into Open Street Map. import osmapi api = osmapi.OsmApi(api = "https://api06.dev.openstreetmap.org", username = "*******", password =******) cs = api.ChangesetCreate() start = api.NodeCreate({"lon":39.77188512682915,"lat":40.99645466061746,"visible":True}) stop = api.NodeCreate({"lon":39.77237597107887,"lat":40.99594855924428,"visible":True}) wayPoints = [start["id"], stop["id"]] way = api.WayCreate({"nd":wayPoints ,"visible":True}) api.ChangesetUpload([{"type":"way","action":"create","data":way}]) api.ChangesetClose()

After the execution, "Request failed: 404 - Not Found - b" error occurred. Am I doing something wrong or incomplete?

asked 04 Sep '20, 14:01

AlperTunga's gravatar image

AlperTunga
112
accept rate: 0%

Be the first one to answer this question!
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:

×61
×6

question asked: 04 Sep '20, 14:01

question was seen: 106 times

last updated: 04 Sep '20, 14:01

powered by OSQA