This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Error while uploading “osmapi.OsmApi.ApiError: Request failed: 404 - Not Found - b’’

0

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
11112
accept rate: 0%

Source code available on GitHub .