[OSM-dev] GPX-Upload via API

Tom Hughes tom at compton.nu
Tue Jul 3 00:39:10 BST 2007


In message <4688E71A.3000205 at gmx.de>
          Jan Baumgarten <JanBaumgarten at gmx.de> wrote:

> i am new to OSM, so plase dont hit me if I get something wrong or
> overlook something.
> I tried to upload an GPX-File via the API as described in the Wiki:
> http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.4#Create_gpx_file
> 
> But all I keep getting is an 404 Not Found Error.
> 
> The Upload is done using an PUT-Request with an URL like this:
> http://www.openstreetmap.org/api/0.4/gpx/create/test.gpx/test.gpx/public=no
> I also tried it without any Tags:
> http://www.openstreetmap.org/api/0.4/gpx/create/test.gpx/test.gpx/
> 
> The answer ist always the same: 404 Not Found.

The problem is that you have a "." in both your filename and your
description. Unfortunately rails can't cope with that so you will
need to use a different name and description.

Other than that, it all seems to work for me.

Oh, and I don't think public=no will do what you expect. It won't
mark the trace as private, it will add public=no as a tag for the
trace.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the dev mailing list